题目内容:
现有以下结构体说明和变量定义,如图所示,指针p、q、r分别指定一个链表中连续的3个结点。 

现要将q和r所指结点交换前后位置,同时要保持链表的结构,下列不能完成此操作的语句是( )。 A.q->next=r->next;p->next=r;r-->next=q;
B.Q->next=r;q->next=r->next;r-->next=q;
C.Q->next=r->next;r->next=q;p-->next=r;
D.qnext=q;p->next=r;q->next=r->next;
参考答案:
答案解析: