有以下结构体说明和变量定义,如图所示: struct node {int
题型:单项选择题
问题:
有以下结构体说明和变量定义,如图所示:
struct node {int data;struct node *next;} *p,*q,*r, 现妥将q所指结点从链表中删除,同时要保持链表的连续,以下不能完成指定操作的语句是【 】。
A.P->next=q->next;
B.p->next=(p->next->next;
C.p->next=r
D.p=q->next;
有以下结构体说明和变量定义,如图所示:
struct node {int data;struct node *next;} *p,*q,*r, 现妥将q所指结点从链表中删除,同时要保持链表的连续,以下不能完成指定操作的语句是【 】。
A.P->next=q->next;
B.p->next=(p->next->next;
C.p->next=r
D.p=q->next;