Multi-dimensional arrays are indexed like so:

Code:

int array[ X ];
int twodee[ Y ][ X ];
int threedee[ Z ][ Y ][ X ];

Thus:

Code:

int twodee[ ROWS ][ COLS ];
int y, x;
for( y = 0; y < ROWS; y++ )
for( x = 0; x < COLS; x++ )
printf("twodee[ %d ][ %d ] is %d\n", y, x, twodee[ y ][ x ] );

Actually, since you want the information for each column, you'd do:

Code:

for( x = 0; x < COLS; x++ )
for( y = 0; y < ROWS; y++ )
if( minimum > twodee[ y ][ x ] )
minimum = twodee[ y ][ x ];

Or something akin to that.

Quzah.