multidimensional arrays | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

multidimensional arrays

Hello, Didn't quite understand the multidimensional arrays. In the following exemple: int[ ][ ] myArr = { {1, 2, 3}, {4}, {5, 6, 7} }; myArr[0][2] = 42; int x = myArr[1][0]; // 4 why does myArr[0][2]=42? can anyone help? tks

2nd Oct 2017, 12:56 PM
Luís Miguel
Luís Miguel - avatar
1 Answer
+ 1
tks. I'm kinda new here, so...
5th Oct 2017, 3:20 PM
Luís Miguel
Luís Miguel - avatar