This is the code: 

```
#include <stdio.h>
#include <stdlib.h>

void acceptMaze(char maze[ROW][COLOUMN], int nrows, int ncols)
{
    int i,j;
    for (i = 0; i < nrows; i++)
    {
        fprintf(stdout,"I = %d",i);
        for (j = 0; j < ncols; j++) 
        {
            fprintf(stdout,"J = %d",j);
            scanf("%c",&maze[i][j]);
        }
    }
}

```

wel while entering data it says`i =0 j=0j=1` .So you see the j=0 doesn't remains.I am using a linux system .Can anyone fix this.