线性链表头指针问题
#include<stdio.h>#include<malloc.h>
struct node
{
ElemType data;
struct node *next;
} *head;
void initlist()/*创建带头指针的链表*/
{
head=(struct node*)malloc(sizeof(struct node));
head->next=NULL;
}
void main()
{
initlist();
}
此程序为什么不能运行

