带头结点的单链表为空的判定条件是( )
A: head->next == NULL
B: head->next == head
C: head == NULL
D: head != NULL
A: head->next == NULL
B: head->next == head
C: head == NULL
D: head != NULL
举一反三
- 不带头结点的单链表head为空的判定条件为( ) A: head->next==NULL B: head!=NULL C: head==NULL D: head->next=head
- 带头结点的单链表为空的判定条件是( ) A: head->next == NULL B: head->next == head C: head == NULL D: head != NULL
- 带头结点的单链表为空的判定条件是( ) A: head->next == NULL B: head->next == head C: head == NULL D: head != NULL
- 带头结点的单链表为空的判定条件是( ) A: head->next == NULL B: head->next == head C: head == NULL D: head != NULL
- 不带头结点的单链表为空的判定条件是 ( )。 A: head==NULL B: head->next==NULL C: head->next==head D: head!=NULL