在双向循环链表中p所指的结点之后插入s指针所指向的结点,其操作是()。
(A)p->next=s; s->prior=p; p->next->prior=s; s->next=p->next;
(B)s->prior=p; s->next=p->next; p->next=s; p->next->prior=s;
(C)p->next=s; p->next->prior=s; s->prior=p; s->next=p->next;
(D)s->prior=p; s->next=p->next; p->next->prior=s; p->next=s;
参考答案
继续答题:下一题