设有关于结构体类型的定义:(     ) struct data { int num; struct data *next; } *p,* head=NULL; 下列语句中正确的有

A.p=(struct data *)malloc(sizeof(struct data))
B.p=(struct data )malloc(sizeof(struct data))
C.p=(struct data *)malloc(sizeof(data))
D.p->next=head
E.p.next=head
出自:安阳师范学院计算机基础与程序设计