Given the following declarations, how would you know if head is pointing to an empty list?

struct NodeType
{
int number;
NodeType* next;
};

NodeType* head;
//some other code here

a. if(head->next == NULL)
b. if(head == null)
c. if( head == NULL)
d. if( head->next==null);
e. A and D
f. B and C

c. if( head == NULL)

Computer Science & Information Technology

You might also like to view...

The statement, when executed in a for loop, will terminate the loop.

a) continue b) break c) next d) None of the above.

Computer Science & Information Technology

If an inner class contains non static members, then the class name must be modified by the keyword:

a. Final b. Static c. Void d. Protected

Computer Science & Information Technology