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 storyboard is a drawing that you show the program's users to ensure that the program meets their expectations.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The Select Case statement begins with the keywords Select Case, followed by a(n) ____.

A. listExpression B. expressionSelector C. expressionList D. selectorExpression

Computer Science & Information Technology

What does a complexity of O(1) mean?

a. The algorithm is executed in constant time b. Such complexity doesn't exist c. The algorithm works with only one dataset at time d. The algorithm is easy to implement

Computer Science & Information Technology

Document templates are saved with a .dotx file extension

Indicate whether the statement is true or false

Computer Science & Information Technology