以下程序的功能是:建立一个带有头结点的单向链表,并将存储在数组中的字符依次转存到链表的各个结点中,请为下划线处选择正确的选项。 #include < stdlib. h > stuct node char data; struct node * next; ; ( ) CreatList(char * s) struet node * h, * p, * q; h = (struet node * ) ma]loc(sizeof(struct node) ); p=q=h; while( * s! =’ 0’) p = ( struct node * ) ma]loc ( sizeof( struct node) ); p- >data= *s; q- >next=p; q=p; s++; p- > next =’ 0’; return h main( ) char str[ ] = link list ; struet node * head; head = CreatList (str);
A.char *
B.struet node
C.struct node *
D.char