hi ...I am in a situation to scan a string (character by character).....i was doing it with cin

but i was asked to do it using "cstdio"....
Code:
char c[maxedges][maxedges];

for(i=0;i<n;i++)
{

for(j=0;j<m;j++)
{

cin>>c[i][j];
}
}
Code:
scanf("%c",&c[i][j])  dint work as expected
plz help me to scan....wat shud i do


must be a silly question though