單項(xiàng)選擇題

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

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;

微信掃碼免費(fèi)搜題