2D Arrays

Subtitle


2D arrays are arrays of arrays.

Example of a 2D array

[R,C]0123
0[0,0][0,1][0,2][0,3]
1[1,0][1,1][1,2][1,3]
2[2,0][2,1][2,2][2,3]
3[3,0][3,1][3,2][3,3]
The table shows a 2D array with the index’s on them. Below is the same table with data in the table.
0123
012322829
123382921
253241039
338967328
For example if we call:
Array[2,1]

We should get the following result.

24

Important

Make sure to always read 2d tables ROW then COLUMN