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 1:38

>>26
Exceptions aren't as slow as you'd think, but they're reasonably costly (let's say 10k cycles on average, but it totally depends on the individual handlers). How often do you think people would dereference NULL? Whenever it happens on modern OS'es, it's almost always an error, so the cost is justified.

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