part of my program involves printing a 2 dimensional character array, so i wrote:

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");
}
so every 'E' is replaced with a blank space.
but the compiler said "subscripted value is neither array nor pointer".
can somebody help???