Question: Assume pointer variable p points to node x of a linked list, and node x ' s next pointer points to node y . What

Assume pointer variable p points to node x of a linked list, and node x's next pointer points to node y. What does free(p) operation mean?
Group of answer choices
return the memory held by x and by y to the free memory pool.
return the memory held by x to the free memory pool.
set pointer p to 0.
return the memory held by x to the free memory pool and set pointer p to 0.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!