Log in

No account? Create an account
Andrei in the office


Andrei's Universe

One man's journey from infinity to nothingness

Previous Entry Share Flag Next Entry
Andrei in the office

How not to start a weekend...

  #include <stdio.h>

  #define SIX    1 + 5
  #define NINE   8 + 1

  int main()
      printf( "The meaning of life: %d\n", SIX * NINE );
      return( 0 );

Please note: The output of this program would in fact be:
 The meaning of life: 42

The source of this was discovered from a link posted in a journal entry in the blogdex_feed community.

  • 1
That's a good one. I actually hadn't heard it before.

(If y'all want to know why the program works out this way, please read the wikipedia article)

That's really entertaining. It took me a few seconds but . . . wow. *giggles reservedly*

  • 1