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

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

A.head==NULL

B.head->next==NULL

C.head->next==head

D.head!=NULL

正确答案:B

猜你喜欢