首页 > 试题广场 >

头指针为head的带头节点的循环链表为空的判定条件是( ).

[单选题]

头指针为head的带头节点的循环链表为空的判定条件是( ).

  • head=nil
  • head^.next=nil
  • head^next=head
  • head<>nil
推荐
选C。循环链表为空时,头结点的下一个结点依然是头结点本身,即带头节点的循环链表:head->next==head

编辑于 2019-06-10 14:17:19 回复(0)