Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.
The destroyList() member function deletes the contents of the linked list and ________________.
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
Related Answered Questions
Related Open Questions