Chapter 9: Problem 6
Suppose a dynamic variable were created as follows: char \(* p\); \(p=\) new char; Assuming that the value of the pointer variable \(p\) has not changed (so it still points to the same dynamic variable), how can you destroy this new dynamic variable and return the memory it uses to the freestore so that the memory can be reused to create new dynamic variables?
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.