在单链表指针为p的结点之后插入指针为 s的结点, 正确的操作是 ( )
A: s->;next=p->;next;p->;next=s;
B: p->;next=s;p->;next=s->;next;
C: p->;next=s->;next;p->;next=s;
D: p->;next=s;s->;next=p->;next;
A: s->;next=p->;next;p->;next=s;
B: p->;next=s;p->;next=s->;next;
C: p->;next=s->;next;p->;next=s;
D: p->;next=s;s->;next=p->;next;
举一反三
- 在循环双链表的p所指结点后插入s所指结点的操作是( )。 A: s->prior=p; s->next=p->next; p->next=s; p->next->prior=s; B: p->next=s; p->next->prior=s; s->prior=p; s->next=p->next; C: p->next=s; s->prior=p; p->next->prior=s; s->next=p->next; D: s->prior=p; s->next=p->next; p->next->prior=s; p->next=s;
- 在单链表中,若*p结点不是终端结点,在其后插入*s结点的操作是 。 A: s->next = p; p->next = s; B: s->next = p->next; p->next = s; C: s->next = p->next; p = s; D: p->next = s; s->next = p;
- 在单链表指针为p的结点之后插入指针为 s的结点, 正确的操作是 ( ) A: s->;next=p->;next;p->;next=s; B: p->;next=s;p->;next=s->;next; C: p->;next=s->;next;p->;next=s; D: p->;next=s;s->;next=p->;next;
- 在单链表指针为p的结点之后插入指针为s的结点,正确的操作是:( ) A: p->;next=s;s->;next=p->;next; B: s->;next=p->;next;p->;next=s; C: p->;next=s;p->;next=s->;next; D: p->;next=s->;next;p->;next=s;
- 在单链表中,要将s所指结点插入到p所指结点之后,其语句为() A: s->next =p+1; p->next=s; B: (*p).next=s;(*s).next=(*p).next; C: s->next = p->next; p->next=s; D: s->next = p->next; p->next=s->next;