- 2

guys whats the purpose of this arr[0][2] = 42;? i have no idea where did that thing came from especially that '42' thing. Thanks

https://code.sololearn.com/cvIQ32rIHlxC/?ref=app

9th Oct 2022, 4:30 AM
ivor
ivor - avatar
2 ответов
+ 1
It's changing the first set of array 3rd number = 42. So 3 becomes 42 I dont see the point of it but that's what it's doing. I guess more context is needed for why it's there
9th Oct 2022, 5:17 AM
Jason Kennedy
0
42 is legendary number from Douglas Adam's book. As short programing code it has no concrete sense here, but can confuses beginners
9th Oct 2022, 10:46 PM
zemiak