欢迎来到易学考试网 易学考试官网
全部科目 > 大学试题 > 计算机科学 > 数据结构

单项选择题

在双向链表指针p 的结点前插入一个指针q 的结点操作是()。

    A.p->prior=q;q->next=p;p->prior->next=q;q->prior=q;
    B.p->prior=q;p->prior->next=q;q->next=p;q->prior=p->prior;
    C.q->next=p;q->prior=p->prior;p->Prior->next=q;p->prior=q;
    D.q->prior=p->prior;q->next=q;p->prior=q;p->prior=q;

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题