Answer to Everything
Whoa! MY first free day at office. Lets celebrate it by bloggin a lot!!
This is a collection of things to prove that 42 is the answer to everything, indeed(Those who have missed H2G2, please don't mind!)
First things first. If we have a question, we need an answer. For an answer, we go to : http://www.google.com . So go there and type: "answer to life, the universe and everything". What does Uncle Google has to say?
http://www.ambrish.de/answer_to_the_ultimate_question_.htm
http://en.wikipedia.org/wiki/The_Answer_to_Life,_the_Universe,_and_Everything
And this is irresistable, just look:
There is a joke amongst computer programmers that Deep Thought may have had some order of operations issues. The following code in the C programming language defines the macros SIX as "1 + 5" and NINE as "8 + 1", and then performs the computation "SIX * NINE". It returns the answer "42", because "SIX * NINE" is expanded by the computer to "1 + 5 * 8 + 1", and the multiplication takes precedence over the additions. (This occurs because the macro expansion is textual, not logical.)
#include
#define SIX 1 + 5
#define NINE 8 + 1
void main()
{
printf( "What do you get if you multiply %d by %d: %d\n", SIX, NINE, SIX * NINE );
}
No comments:
Post a Comment