destruction using delete
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;
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement