单项选择题
带头结点的循环单链表head为空的判断条件是()
A. head == NULL
B. head != NULL
C. head->next == head
D. head->next == NULL
点击查看答案
相关考题
-
单项选择题
设rear是指向非空带头结点的循环单链表的尾指针,则在起始结点之前插入指针p所指结点的操作可表示为()
A. p->next = rear->next->next; rear->next = p
B. p->next = rear->next; rear->next->next = p
C. p->next = rear->next->next; rear->next->next = p
D. p->next = rear->next->next; rear->next->next = p->next -
单项选择题
在一个带头结点的循环双向链表中,若要删除指针p所指向的结点则执行()嗓作。
A.p = p->prior;p->prior->next = p->next
B.p->prior->next = p;p->next = p->next->prior
C.p->next->prior = p;p->next = p->next->next
D.p->prior->next = p->next;p->next->prior = p->prior -
单项选择题
非空的循环单链表head的尾结点(有指针p所指)满足()
A.p->next=NULL
B.p->next=head
C.p=NULL
D.p=head
