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-15 16:08

>>6
Of course, same would happen in most OSes.
>>5
There's no negative addresses of course.
So if you subtracted 1 from the 0 pointer, you'd get -1, or treated as an unsigned int: 0xFFFFFFFF (on 32bit).

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