Multiple choice

Null pointer is used to tell which of the following?

  1. End of link list

  2. Empty pointer field of structure

  3. The link list is empty

  4. None of these

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In linked lists, a null pointer (NULL in C/C++) marks the end of the list. When traversing, encountering a null next pointer signals there are no more nodes to follow. This is different from an empty list (where the head pointer itself is null) or an empty structure field.