设有如下结点定义及链表情况,删除其中学号为101的语句是( )。struct node{ int num; /* 学号 */ struct node *next;} *head, *p;
A.
p=head->next; p->next=head->next; free(p); B.
p=head->next; free(head); head=p; C.
p=head->next; head->next=p->next; free(p); D.
p=head->next; free(p->next); p->next=NULL;
A. p=head->next; p->next=head->next; free(p); B.
p=head->next; free(head); head=p; C.
p=head->next; head->next=p->next; free(p); D.
p=head->next; free(p->next); p->next=NULL;