A: p->;prior->;next=p->;next;p->;next->;prior=p->;prior;
B: p->;prior=p->;prior->;prior;p->;prior->;prior=p;
C: p->;next->;prior=p;p->;next=p->;next->;next;
D: p->;next=p->;prior->;prior;p->;prior=p->;prior->;prior;
举一反三
- 在双向链表存储结构中,删除p所指的结点,相应语句为: A: p->;prior=p->;prior->;prior; p->;prior->;next=p; B: p->;next->;prior=p; p->;next=p->;next->;next; C: p->;prior->;next=p->;next; p->;next->;prior=p->;prior; D: p->;next=p->;prior->;prior; p->;prior=p->;next->;next;
- 在双向链表存储结构中,删除p所指的结点必须修改指针() A: p->prior->next=p->next; p->next->prior=p->prior; B: p->prior=p->prior->prior; p->prior->next=p; C: p->next->prior=p; p->next=p->next->next; D: p->next=p->prior->prior; p->prior=p->next->next;
- 在双向链表存储结构中,删除p所指结点时须修改指针( ) A: p->prior->next=p;p->prior=p->prior->prior; B: p->prior=p->next->next;p->next=p-->prior->prior; C: p->next=p->next->next;p->next->prior=p; D: p->next->prior=p->prior;p->prior->next=p->next;
- 在双向链表存储结构中,删除p所指的结点时须修改指针( )。 A: p->next->prior=p->prior; p->prior->next=p->next; B: p->next=p->next->next; p->next->prior=p; C: p->prior->next=p; p->prior=p->prior->prior; D: p->prior=p->next->next; p->next=p->prior->prior;
- 在双向链表存储结构中,删除p所指的结点时须修改指针( )。 A: p->next->prior=p->prior;p->prior->next=p->next; B: p->next=p->next->next;p->next->prior=p; C: p->prior->next=p;p->prior=p->prior->prior; D: p->prior=p->next->next;p->next=p->prior->prior;
内容
- 0
在双向链表存储结构中,删除p所指的结点时须修改指针( ) A: p->;prior->;next=p->;next; p->;next->;prior=p->;prior; B: p->;next=p->;next->;next; p->;next->;prior=p; C: p->;prior->;next=p; p->;prior=p->;prior->;prior; D: p->;prior=p->;next->;next; p->;next=p->;prior->;prior;
- 1
在双向链表存储结构中,删除p所指的结点时须修改指针( )。 A: p->prior=p->prior->prior; p->prior->next=p; B: p->next=p->prior ->prior; p->prior=p->next->next; C: p->prior->next=p->next; p->next->prior=p->prior; D: p->next->prior=p; p->next=p->next->next;
- 2
【单选题】删除一个双链表中结点p(p非头结点和尾结点)的操作是_______。 A. p->prior->next=p->next; p->next->prior=p->prior; B. p->prior->next=p->prior; p->next->prior=p->next; C. p->prior=NULL; p->next=NULL; D. p->next->prior=p; p->prior->next=p;
- 3
在双向链表存储结构中,删除p所指的结点时需要修改指针() A: p->next->prior=p->prior;p->prior->next=p->next; B: p->next=p->next->next;p->next->priort=p; C: p->prior->next=p;p->priort=p->prior->prior; D: p->prior=p->next->next;p->next=p->priort->prior;
- 4
在循环双链表的p所指的结点之前插入s所指结点的操作是 ( ) A: p->;prior = s;s->;next = p;p->;prior->;next = s;s->;prior = p->;prior; B: p->;prior = s;p->;prior->;next = s;s->;next = p;s->;prior = p->;prior; C: s->;next = p;s->;prior = p->;prior;p->;prior = s;p->;prior->;next = s; D: s->;next = p;s->;prior = p->;prior;p->;prior->;next = s;p->;prior = s;