In the linked list implementation of the queue, we had both a destructor and a makeEmpty function because:
A. the destructor needs to call the makeEmpty function
B. the client may want to empty out the queue without destroying it; however, the client shouldn’t have to remember to use makeEmpty to avoid memory leak upon destruction of the queue
C. the makeEmpty function needs to call the destructor; otherwise, the queue cannot be destroyed
D. only one is used to free dynamic memory, the other cannot
B
You might also like to view...
SQL Server Data Tools have a selection of predefined project ___________ that include the Integration Services Business Intelligence project for designing Integration Services packages.
Fill in the blank(s) with the appropriate word(s).
Give the command that returns the total number of processes running on your system.
What will be an ideal response?