How the output is johnson ? I dont get it, anyone? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How the output is johnson ? I dont get it, anyone?

13th Oct 2016, 2:19 PM
Tim Ayres
Tim Ayres - avatar
2 Answers
+ 1
We already know arrays start counting from position 0. The question ask for [1][1], in multi dimensional array this mean, find grouping at position 1 or go to row at position 1(this will be the second row, where, "John" "Johnson" "Hello" are), then in that grouping go to element at position 1(column at position 1), again with arrays starting to count from position 0, "Johnson" will be found at position 1, that is why output is "Johnson"
13th Oct 2016, 4:09 PM
Flo
+ 1
i dont really understand this, cause shouldnt be the output John and Johnson? Because if the multidimension arrays?
24th Oct 2016, 10:35 PM
Withdrawn
Withdrawn - avatar