The destructor is responsible for allocating all the memory that was allocated for the linked list.

Skill/Topic: Linked List
A) True
B) False
Explanation: The destructor is responsible for de-allocating all the memory that was allocated for the linked list.

Showing Answers 1 - 4 of 4 Answers

samiksc

  • Jan 20th, 2006
 

The destructor is responsible for de-allocating all the memory that was allocated to linked list nodes -- but not for the memory allocated by any pointer variables in the nodes. The nodes destructor is responsible for freeing all memory allocated by its pointer members.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions