若有已经建好的链表结构如下,指针平p、q分别指向图示节点(b节点为插入c节点前的链表末尾);不能实现将q所指节点插入到链表末尾的一组语句是()。
- 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;
正确答案:C
答案解析:有

微信扫一扫手机做题