In a circular linked list, which node's next pointer is set to NULL during…

2025

In a circular linked list, which node's next pointer is set to NULL during deletion of the last node?

  1. A.

    Head node

  2. B.

    None of any node

  3. C.

    Last node

  4. D.

    Node before last node

Attempted by 124 students.

Show answer & explanation

Correct answer: B

In a circular linked list, the defining characteristic is that every node's next pointer points to another node within the same structure, ensuring there are no NULL pointers. When deleting the last node, the algorithm updates the next pointer of the second-to-last node to point directly to the head node (or the new last node), maintaining the circular continuity. Consequently, no pointer is ever set to NULL during this operation because doing so would break the circular property and convert it into a standard linked list.

Explore the full course: Niacl Ao It Specialist