void rasterFill2DArray ( int x[][NUMCOLS], int nrows ) { int r, c; for ( r=0; r<nrows; r++ ) for ( c=0; c<NUMCOLS; c++ ) x[r][c] = r*10+c; }