• Advertisement

Archived

This topic is now archived and is closed to further replies.

destruction using delete

This topic is 6446 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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;

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement