Consider the following code which deletes all the nodes in a linked list.void doublyLinkedList::destroy(){ nodeType *temp; //pointer to delete the node while (first != nullptr) { temp = first; first = first->next; ____}last = nullptr;count = 0;}Which of the following is the missing statement?
A. delete first;
B. delete temp;
C. destroy temp;
D. clear temp;
Answer: B
Computer Science & Information Technology
You might also like to view...
Match each button with the tab where it can be found:
I. Eraser II. Distribute Columns III. Object IV. Edit Data V. Slide Size A. Layout tab B. Table Tools Design tab C. Insert tab D. Design tab E. Chart Tools Design tab
Computer Science & Information Technology
Before the Spelling button is clicked, it is useful to make ________ the active cell
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology