C Multidimensional Arrays (Two-dimensional and more)
To loop through a multi-dimensional array, you need one loop for each of the array's dimensions. The following example outputs all elements in thematrixarray: Example intmatrix[2][3] = { {1,4,2}, {3,6,8} }; inti, j; for(i =0;i <2; i++) { ...