Advertisement

destruction using delete

Started by August 26, 2000 12:53 PM
0 comments, last by FrigidHelix 24 years, 4 months ago
if i create an array using this line of code: char* buffer = new char[1024]; which of the following lines of code would correctly unallocate all the memory: 1) delete [] buffer; 2) delete buffer;
Choice 1

=======================================
A man with no head is still a man.
A head with no man is plain freaky.

This topic is closed to new replies.

Advertisement