在单向链表中,将结点q插入p所指结点之后的链操作为()。
A.q->next=p->next;p->next=q;
B.p->next=q;q->next=p->next;
C.q->next=p;p->next=q;
D.p->next=q;q->next=p;
正确答案:q->next=p->next;p->next=q;
猜你喜欢