Explain Multi Dimensions Arrays plz | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Explain Multi Dimensions Arrays plz

20th Mar 2017, 2:07 PM
Djaber Meghar
Djaber Meghar - avatar
1 Answer
+ 4
you can look at a bidimensional array as a table with rows and columns. each cell in the table can be accessed via its column and rows number like the horizontal and vertical coordinates of a Cartesian plain. sampleArray[1] [3] can be visualized as the cell in the table corresponding to the intersection between the column indexed by 1(second column in the table) and the row indexed by 3(fourth row in the table). Remember that indexes start at 0. You can visualize a 3 dimensional array as a cube
20th Mar 2017, 9:05 PM
seamiki
seamiki - avatar