You are viewing a single comment's thread. Return to all comments →
what's this statement doing?
It is used to free the memory assigned to A because its no longer needed.
@slanger125 You also want to make sure use delete A and not just delete A
delete A frees the entire array from memory
delete A will just free the pointer and leave the array in memory creating a memory leak.