头指针为head的带头结点的循环链表为空的判定条件是()。A.head=null

题库2022-08-02  23

问题 头指针为head的带头结点的循环链表为空的判定条件是()。A.head=null B.head—>next=nullC.head—>next=headD.head—>null

选项 A.head=null
B.head—>next=null
C.head—>next=head
D.head—>null

答案 C

解析 循环链表为空,即头结点的后继结点是头结点本身,具体的操作语句为head—>next=head。
转载请注明原文地址:https://tihaiku.com/gongwuyuan/2555043.html

最新回复(0)