头指针为head的带头结点的循环链表为空的判定条件是()。
- A.head=null
- B.head—>next=null
- C.head—>next=head
- D.head—>null
正确答案及解析
正确答案
C
解析
循环链表为空,即头结点的后继结点是头结点本身,具体的操作语句为head—>next=head。
头指针为head的带头结点的循环链表为空的判定条件是()。
循环链表为空,即头结点的后继结点是头结点本身,具体的操作语句为head—>next=head。