Question: Suppose your program contains code to create a dynamically allocated array as the following : int *entry; entry = new int[10]; and suppose the pointer

Suppose your program contains code to create a dynamically allocated array as the following :

int *entry;

entry = new int[10];

and suppose the pointer variable entry has not had its (pointer) value changed. Write code to destroy this dynamically allocated array and return the memory it uses to the freestore manager.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!