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
You might also like to view...
Images that are no longer protected by copyright law are in the ____________________.
Fill in the blank(s) with the appropriate word(s).
The ________ command causes text to appear as if it has been highlighted with a marker
A) Shadow B) Highlighting C) Boldface D) Underline
In the context of Microsoft Office 2016, which of the following statements is true of the Office Clipboard??
A. ?It can comprise only the most recently cut or copied items. B. ?It is available to all Windows 10 applications. C. ?It holds up to 24 cut or copied items. D. ?It contains the cut or copied items only when the system Clipboard is activated.
You can ____ the width or the height of the printout so that all of the columns or all of the rows fit on a single page.
A. shrink B. size C. scale D. scroll