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

Can your C compiler do this:

Name: Anonymous 2010-05-15 15:06


int main()
{
  int *p;
  p  = 0;
  *p = 0;
  return 0;
}


?

Name: Anonymous 2010-05-16 0:10

>>15
They weren't errors. That's kindof the point. Dereferencing a null pointer was well defined and supported on these platforms. Obviously using an exception handler to work around it in a modern OS is a horrible idea.

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