链表struct 与 malloc 函数用法 C语言 struct listNode{ int value; struct listNode *next; }; int *p; p=(int*)malloc(sizeof(int)); struct listNode *head; head=(struct listNode*)malloc(sizeof(struct listNode));