
A.q->next=NULL;p=p->next;p->next=q
B.p=p->next;q->next=p->next;p->next=q
C.p=p->next;q->next=p;p->next=q
D.p=(*p).next;(*q).next=(*p).next;(*p).next=q
第1题:

A.q->next=NULL;p=p->next;p->next=q
B.p=p->next;q->next=p;p->next=q
C.p=p->next;q->next=p->next;p->next=q
D.p=(*p).next;(*q).next=(*p).next;(*p).next=q
第2题:
有以下结构说明和变量定义,指针p、q、r分别指向链表中的3个连续结点。 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;
第3题:
若已建立一个链表,指针p指向尾结点,指针q指向新结点,则能将q所指的结点链接到链表末尾的 一组语句为________。
A.q->next=NULL;p->next=q; p=q;
B.p=p->next;q->next=p->next;p->next=q;
C.p=p->next;q->next=p;p->next=q;
D.p=(*p)·next;(*q)·next=(*p)·next;(*p)·next=q;
第4题:
有以下结构体说明和变量的定义,且指针P指向变量a,指针q指向变量b,则不能把结点b连接到结点a之后的语句是( )。
struct node {char data; struct node*next;}a,b,*p=&a,*q=&b;
A.a.next=q;
B.P.next=&b;
C.p->next=&b;
D.(*p).next=q;
第5题:
要在一个单向链表中删除p所指向的结点,已知q指向p所指结点的直接前驱结点,若链表中结点的指针域为next,则可执行()。
q->next=p->next;
略