單項選擇題

若有已經(jīng)建好的鏈表結(jié)構(gòu)如下,指針平p、q分別指向圖示節(jié)點(b節(jié)點為插入c節(jié)點前的鏈表末尾);不能實現(xiàn)將q所指節(jié)點插入到鏈表末尾的一組語句是()。

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;

微信掃碼免費搜題