问题
单项选择题
在一个单链表head中,若要在指针p所指结点后插入一个q指针所指结点,则执行()
A.p->next=q->next;q->next=p;
B.q->next=p->next;p=q;
C.p->next=q->next;p->next=q;
D.q->next=>next;p->next=q;
答案
参考答案:D
在一个单链表head中,若要在指针p所指结点后插入一个q指针所指结点,则执行()
A.p->next=q->next;q->next=p;
B.q->next=p->next;p=q;
C.p->next=q->next;p->next=q;
D.q->next=>next;p->next=q;
参考答案:D