5.8k views
2 votes
Given a doubly-linked list (2,3,4,5,6,7), node 2 's pointer(s) point(s) to

a) node 3
b) null
c) node 3 and null
d) the head and node 3

1 Answer

2 votes

Final answer:

Node 2's pointer in a doubly-linked list points to node 3.

Step-by-step explanation:

In a doubly-linked list, each node contains two pointers: one pointing to the next node and one pointing to the previous node. Given a doubly-linked list (2,3,4,5,6,7), node 2's pointer(s) point(s) to node 3. In this case, node 2 points to the next node in the list, which is node 3.

User Tiffy
by
8.5k points