![](https://lstatic.shangxueba.com/sxbzda/h5/images/m_q_title.png)
有两个指针P和Q分别指向单链表的两个元素,P所指元素是Q所指元素前驱的条件是()
A.P->next==Q->next
B.P->next=Q
C.Q->next==P
D.P==Q
![](https://lstatic.shangxueba.com/sxbzda/h5/images/tips_org.png)
A.P->next==Q->next
B.P->next=Q
C.Q->next==P
D.P==Q
第1题
A.q->next=s->next;s->next=p;
B.s->next=p;q->next=s->next;
C.p->next=s->next;s->next=q;
D.s->next=q;p->next=s->next;
第2题
A.结点*p与结点*s的数据域互换
B.在p所指结点的元素之前插入元素
C.在p所指结点的元素之后插入元素
D.在结点*p之前插入结点*s
第3题
A.p->next!=S
B.p->next==S
C.p!=S
D.p==S
第4题
A.s->next=p->next;p->next=s;
B.p->next=s->next;s->next=p;
C.q->next=s;s->next=p;
D.p->next=s;s->next=q;
第5题
A.p->next=q->next;q->next=p;
B.q->next=p->next;p=q;
C.p->next=q->next;p->next=q;
D.q->next=>next;p->next=q;
第6题
A.p=p->next;
B.p->next=p->next->next;
C.p->next = p;
D.p = p->next->next;
第7题
A.p->next=q;q->prior=p;p->next->prior=q;q->next=q;
B.p->next=q;p->next->prior=q;q->prior=p;q->next=p->next;
C.q->prior=p;q->next=p->next;p->next->prior=q;p->next=q;
D.q->next=p->next;q->prior=p;p->next=q;p->next=q;
第8题
A.p=p->next;free(p);?
B.p->next=p->next->next;?free(p);?
C.q=?p->next?;q->next=p->next;?free(q);?
D.q=p->next;?p->next=q->next?;free(q);?
第9题
A.p→next=p→next→next
B.q=p→next; p→next=q→next
C.p→next=p→next
D.p=p→next→next
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!