Question: 35
(Choose 1 answer)
To delete an entire linked list, including the memory alllocation, what should you do?
A. Set 'head' to 'nullptr
B. Delete each node from start to end and set 'head' to 'nullptr
C. Delete only the first node
D. Set all nodes' 'next' to 'nullptr