Multi-Dimensional Arrays
#define M 3 /* number of rows */
#define N 4 /* number of columns */
int a[M][N], i, j, sum = 0;
for (i = 0; i < M; ++i) /* fill the array */
for (i = 0; i < M; ++i) { /* print array values */
printf("a[%d][%d] = %d ", i, j, a[i][j]);
printf("\n"); } /* end print array values */
for (i = 0; i < M; ++i) /* sum the array */
printf("\nsum = %d\n\n", sum);