当前位置: X题卡 > 所有题目 > 题目详情

设单链表中结点的结构为(data,link)。已知指针q所指结点是指针p所指结点的直接前驱,若在*q与*p之间插入结点*s,则应执行下列哪一个操作

查看本题答案

你可能感兴趣的试题

s↑.link=p↑.link; p↑.link:=s  q↑.link;=s; s↑.link:=p  p↑:link:=s↑.link; s↑.link=p  p↑.link=s; s↑.link:=q  
s—>link—p;p—>link—s;  s—>link—p—>link;p—>link—s;  s一>link===P—>link;P—S;  p—>link—S;s—>link—p;  
q:=p↑.link;p↑.link:=q↑.link  p↑.link:=q↑.link;q↑link:=p↑.link  q↑.link:=p;p↑.link:=q  q↑.link:=P↑.link;p↑,link:=q  
s↑.link:=p↑.link;p↑.link:=s  q↑.link:=s;s↑.link:=p  p↑.link:=s↑.link;s↑.link:=p  p↑.link:=s;s↑.link:=q  
s↑.link:=p↑.link;p↑.link:=s  q↑.link:=s;s↑.link:=p  p↑.link:=s↑.link;s↑.link:=p  p↑.link:=s;s↑.link:=q  
s↑.link:=p↑.link;p↑.link:=s  q↑.link:=s;s↑.link:=p  p↑.link:=s↑.link;s↑.link:=p  p↑.link:=s;s↑.link:=q  
q:=p↑.link;p↑.link:=q↑.link  p↑.link:=q↑.link;q:=p↑.link  q↑.link:=p↑.link;p↑.link:=q  p↑.link:=q;q↑.link:=p↑.link  
q:=p↑.link;p↑.link:=q↑.link  p↑.link:=q↑.link;q↑.link:=p↑.link  q↑.link:=p;p↑.link:=q  q↑.link:=p↑.link;p↑.link:=q  
q:=p↑.link;p↑.link:=q↑.link  p↑.link:=q↑.link;q↑.link:=p↑.link  q↑.link:=p;p↑.link:=q  q↑.linkl:=p↑.link;p↑.link:=q  
q:=p^.1ink;p^.link:=q^.link  p^.link:=q^.link;q:=p^.link  q^.link:=p^.link;p^.link=q  p^.link:=q;q^.link:=p^.link  
s↑.link=p↑.link;p↑.link:=s  q↑.link:=s;s↑link=p  p↑.link:=s↑.link;s↑.link:=p  P↑.link:=s;s↑.link:=q  
s↑.link: =p↑.link; p↑.link: =s  q↑.link: =s; s↑.link: =p  p↑.link: =s↑.link; s↑.link: =p  p↑.link: =s; s↑.link: =q  
s ->link=p->link;p->link=s  q->link=s;s->link=p  p->link=s->link;s->link=p  p->link=s;s->link=q  
q:=p↑.link; p↑.link:=q↑.link  p↑.link=q↑.link; q↑.link:=p↑.link  q↑.link=p; p↑.link=q  q↑.link:=p↑.link; p↑.link:=q  
s↑.link:=p↑.link;p↑.link:=s  q↑.link:=s;s↑.link:=p  p↑.link:=s↑.link;s↑.link:=p  p↑.link:=s;s↑.link:=q  
q:=p↑.link; p↑.link:=q↑.link  p↑.link:=q↑.link; q↑.link:=p↑.link  q↑.link:=p; p↑.link:=q  q↑.link:=p↑.link; p↑.link:=q  

热门试题

更多