题目内容

指针p指向双向链表中的结点A,则删除结点A的操作是( )

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

查看答案
更多问题

线性表采用链式存储结构时,要求存储单元的地址( )。

A. 必须是连续的
B. 部分地址必须是连续的
C. 一定是不连续的
D. 连续不连续都可以

设head为单链表的头指针,则不带头结点的单链表为空的判定条件是( )。

A. head==NULL
B. head->next==NULL
C. head->next==head
D. head!=NULL

设head为单链表的头指针,则带头结点的单链表为空的判定条件是( )。

A. head==NULL
B. head->next==NULL
C. head->next==head
D. head!=NULL

设head和tail分别为单向循环链表的头指针和尾指针,则下列等式成立的是( )。

A. head==tail
B. head->next==tail
C. tail->next==head
D. head->next==tail->next

答案查题题库