+ 1

how to use indexes for both dimensions in multidimensional array

1st Jul 2016, 11:46 AM
Midhun Mathew
2 odpowiedzi
+ 3
Multidimensional arrays are like matrix(2 dimensions), then the library of matrix(3), library of libraries of matrix(4) and so on. So indexes(if they are numerics) are like this(It's example of 2 dimensional array with 3 columns, 2 rows): [0, 0], [0, 1], [0, 2] [1, 0], [1, 1], [1, 2]
3rd Jul 2016, 5:13 AM
Dmitry Pudov
Dmitry Pudov - avatar
0
For two dimensional array it should be written like [0][0], [0][1] etc.
5th Aug 2016, 11:49 AM
Sumitabha Banerjee
Sumitabha Banerjee - avatar