Explain how memory is allocated and deallocated in C++. Additionally, write a block of code that makes a copy of the fol
Posted: Mon May 09, 2022 5:53 am
Explain how memory is allocated and deallocated in C++. Additionally, write a block of code that makes a copy of the following array using dynamic memory. Also demonstrate how the newly allocated array must be deallocated when it is no longer needed in the program. const int SIZE = 10; char values[SIZE] = {'C', '#', '9', '5', 'H', 'p, ", 'y, '$', 'M'};