The last node of a singly linked list is recognized by:

2023

The last node of a singly linked list is recognized by:

  1. A.

    Its data field being empty

  2. B.

    Its address field being empty

  3. C.

    Its address field containing the address of the first node

  4. D.

    Its address field containing the NULL reference

Attempted by 389 students.

Show answer & explanation

Correct answer: D

The last node of a singly linked list contains a NULL reference in its address field, indicating the end of the list.

Explore the full course: Cocubes Preparation