In C++, which of the following statements correctly returns the memory from the dynamic array pointer pp to the free store?
Show answerHide answer
Correct answer: (C) delete [] pp;
Explanation
Memory allocated with new[] for an array must be freed with delete [] pp, so that the whole array is released and destructors run for every element.