在单链表中,指针p指向元素为x的结点,下面哪条语句实现“删除x的后继”? ( )
A.p=p->next
B.p->next=p->next->next
C.p->next=p
D.p=p->next->next
第1题:
●在单链表中,指针p指向元素为x的结点,实现"删除x的后继"的语句是 (20) 。
(20) A.p=p→next;
B.p→next=p→next→next;
C.p→next=p;
D.p=p→next→next;
第2题:
A、q->next=x->next;x->next=p;
B、s->next=p;q->next=x->next;
C、p->next=x->next;x->next=p;
D、x->next=q;p->next=x->next;
第3题:
A、p=p-next
B、p-next=p-next-next
C、p-next=p
D、p=p-next-next;
第4题:
在单链表中,指针P指向元素为x的结点,实现“删除x的后继”的语句是(20)。
A.p=p→next;
B.p→next:p→next→next;
C.p→next=p;
D.p=p→next→next;
第5题:
A、p->next=p->next->next;
B、p->next=p->next;
C、p=p->next;
D、p=p->next->next;
第6题:
在一个单链表中,p、q分别指向表中两个相邻的结点,且q所指结点是p所指结点的直接后继,现要删除q所指结点,可用的语句是()。
A.p=q->next
B.p->next=q
C. p->next=q->next
D.q->next=NULL
第7题:
A、p=p->next;
B、p->next=p->next->next;
C、p->next=p;
D、p->next->next=p->next->next->next;
第8题:
A、p=p->next
B、p=p->next->next
C、p->next=p
D、p->next=p->next->next
第9题:
A.p=s->next
B.p->next=s;s->next=p->next
C.p->next=s->next;
D.s->next=p->next;p->next=s;
第10题:
在单链表中,指针P指向元素为x的结点,语句(10)现“删除x的后继”
A.p=p→mext;
B.p→next=p→next→next;
C.p→next=p;
D.p=p→next→next;