What does the pointer in each node of a singly linked list typically store?

2025

What does the pointer in each node of a singly linked list typically store?

  1. A.

    The number of remaining nodes in the list

  2. B.

    A reference to the next node in the sequence

  3. C.

    A reference to the previous node

  4. D.

    The index position of the node

Attempted by 210 students.

Show answer & explanation

Correct answer: B

In a singly linked list, each node contains data and a pointer to the next node. This pointer stores the memory address of the subsequent node, allowing traversal through the list.

Explore the full course: Niacl Ao It Specialist