If there is a NodePtr named toDelete whose value points to a valid node in the list, which of the following statements would remove the node that follows toDelete from the list and return that memory to the freestore?
a. toDelete -> link = toDelete -> link ->link;
delete toDelete-> link;
b. tmp = toDelete -> link;
toDelete -> link = tmp -> link;
delete tmp;
c. tmp = toDelete -> link;
toDelete -> link = toDelete->link->link;
delete tmp;
d. All of the above
e. none of the above
f. A and B
g. B and C
g. B and C
Computer Science & Information Technology
You might also like to view...
A(n) ________ is a high-end desktop computer or one that is connected to a network in a business setting
A) workstation B) two-in-one C) netbook D) all-in-one
Computer Science & Information Technology
Write a sample data list for the statement: INPUT car manufacturer.
What will be an ideal response?
Computer Science & Information Technology