A
Anonymous
Hi Folks,
How does the ANSI C++ specification treat the following situation?
char *ptr = new char[25];
ptr += 5;
delete [] ptr;
Will all of the memory be freed? Will only 20 bytes be freed? Is this,
perhaps, undefined?
Thanks!
How does the ANSI C++ specification treat the following situation?
char *ptr = new char[25];
ptr += 5;
delete [] ptr;
Will all of the memory be freed? Will only 20 bytes be freed? Is this,
perhaps, undefined?
Thanks!