2 dimensional C array

Arrays in C with 2 dimensions look like this

int arr[3][4] = {0, 1 ,2 ,3 ,4 , 5 , 6 , 7 , 8 , 9 , 10 , 11};
or
int arr[3][4] = {{0, 1, 2, 3}, {4, 5, 6, 7}, {8, 9, 10, 11}};

They are read as type array[m][n]; which produces an array of type with m rows of n columns. Like pixels on a screen, not like coordinates on a map.

Pasted image 20260820140952.png

Multidimensional Arrays in C - 2D and 3D Arrays - GeeksforGeeks