C Programming Examples with Output Part – 5

1) what is the output of the following program? If the user inputs the values as AMRAVATI NAGPUR YAVATMAL
void main()
{
char a, b, c;
scanf("%c%c%c", &a, %b, &c);
printf("a=%c b=%c c=%c", a, b, c);
}
Output:
a = A b = M c = R