题目详情
单选题 对如图所示的双向链表,要在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
相关题目
相关作业