Why 42 is used..? | Sololearn: Learn to code for FREE!

+3

Why 42 is used..?

int myArr[5]; for(int x=0; x<5; x++) { myArr[x] = 42; }

c++

7/14/2017 6:40:46 AM

Rahul.R

2 Answers

New Answer

+16

'42' is the universal answer of all questions ^^ (answer to the ultimate question of life, the universe, and everything) It's a reference to << The Hitchhiker's Guide to the Galaxy >> https://en.m.wikipedia.org/wiki/Phrases_from_The_Hitchhiker%27s_Guide_to_the_Galaxy

+10

https://en.m.wikipedia.org/wiki/42_(number)