part of my program involves printing a 2 dimensional character array, so i wrote:
so every 'E' is replaced with a blank space.Code:for(i=0; i<rows; i++){ for(j=0; j<columns; j++){ if (grid[i][j] == 'E') printf(" "); else printf(" %c ", grid[i][j]); } printf("\n"); }
but the compiler said "subscripted value is neither array nor pointer".
can somebody help???