The destroyList() member function deletes the contents of the linked list and ________________.

Skill/Topic: Linked List
A) does not delete the linked list itself
B) delete the linked list itself
C) adds the linked list itself
D) None of the above
Explanation: The destructor is a member function called when the instance of the LinkedList class is deleted using the delete operator. In the example shown next, the destructor contains one statement that calls the destroyList() member function.The destroyList() member function deletes the contents of the linked list but does not delete the linked list itself. That is, it removes all the nodes from the linked list

Showing Answers 1 - 4 of 4 Answers

Prabhakar

  • Dec 20th, 2006
 

(B).

  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