">

">

某双向链表中的结点如题图所示。删除t所指结点的操作为()


某双向链表中的结点如题图所示。删除t所指结点的操作为()



A、

t->prior->prior=t->next; t->next->prior=t->prior


B、

t->prior->prior=t->prior; t->next->next=t->next


C、

t->prior->next=t->prior; t->next->prior=t->next


D、

t->prior->next=t->next; t->next->prior=t->prior


【正确答案】:D
【题目解析】:

如图,本题中,把p换成t即可得出正确答案为D。



Top