Suppose that your program contains the type definitions and code given
in Self-Test Exercise 1. Assuming that the value of the pointer variable
head has not been changed, how can you destroy the dynamic variable
pointed to by head and return the memory it uses to the freestore so that it can be reused to create new dynamic variables?
Sorry the answer is not available at the moment…
If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.
Spread the 'tradition of sharing'.