Chapter 9: Problem 27
Assume that tempNumbers is a pointer that points to a dynamically allocated array. Write code that releases the memory used by the array.
Short Answer
Expert verified
Answer: To release the memory occupied by a dynamically allocated array in C++, you can use the "delete[]" operator followed by the pointer to the array. For example:
```cpp
delete[] tempNumbers;
```