Arrays and pointers in C - ibiblio - The Public's Library and Digital Archive
the arithmetic will be more manageable. A 2D array in C is treated as a 1D array whose elements are 1D ... } printf("\n"); return; } /* Method #2 (pointer to array, second dimension is explicitly (short (*mat)[3]) { register short i, j; printf ......