题海让大学四年没有难题
白天模式登陆

题目详情

单选题 对如图所示的双向链表,要在p结点前面插入s结点,正确的语句序列是( ).

A. s->prior=p->prior ; p->prior->next=s ; s->next=p ; p->prior=s

B. p->prior=s ; s->prior=p->prior ; p->prior->next=s ; s->next=p

C. s->prior=p->prior ; p->prior=s ; p->prior->next=s ; s->next=p

D. s->prior=p->prior ; p->prior->next=s ; s->next=p->next ; p->prior->next=s

学科:数据结构

时间:2024-01-03 10:39:45

Copyright © 2022 津ICP备2021001502号