In a singly linked list, each node contains:
2024
In a singly linked list, each node contains:
Answer: A. Data and an address field with the address of the next node — Each node in a singly linked list contains the data and an address field, which points to the next node in the sequence.
- A.
Data and an address field with the address of the next node
- B.
Data and two address fields with the addresses of the previous and next nodes
- C.
Only data
- D.
Only address field with the address of the next node
Attempted by 671 students.
Show answer & explanation
Correct answer: A
Each node in a singly linked list contains the data and an address field, which points to the next node in the sequence.
Loading lesson…