Code:
int img4[IMG_SIZE][IMG_SIZE] =
{ 16, 16, 220, 16, 1, 16,
16, 87, 16, 16, 215, 16,
16, 16, 16, 5, 16, 16,
128, 128, 56, 128, 128, 128,
128, 198, 128, 128, 128, 32,
78, 128, 128, 21, 128, 128};
i have that 2d array, and i want to access it in this sequence using 2 for loop. any idea?
thx for the helpz
[0][0] [0][1] [0][2]
[1][0] [1][1] [1][2]
[2][0] [2][1] [2][2]
-----------------------
[3][0] [3][1] [3][2]
[4][0] [4][1] [4][2]
[5][0] [5][1] [5][2]
-----------------------
[0][3] [0][4] [0][5]
[1][3] [1][4] [1][5]
[2][3] [2][4] [2][5]
-----------------------
[3][3] [3][4] [3][5]
[4][3] [4][4] [4][5]
[5][3] [5][4] [5][5]