Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

heap corruption

Name: Anonymous 2009-06-18 3:05

would this cause heap corruption?

int main()
{
   char *s = new char[4];
   delete &s[0];
   delete [] s;
   return 0;
}

Name: Anonymous 2009-06-18 8:53

>>3
sizeof(char)
Read the Stadard, moran.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List