0
 char a;
 char b;

printf("Enter a charater: ");
scanf("%c", &a);
printf("Your input is: %c\n", a);
printf("The address of this charater is: %u\n", &a);

printf("Enter a charater: ");
scanf("%c", &b);
printf("Your input is: %c\n", b);
printf("The address of this charater is: %u\n", &b);    

I can only input the first one, it skips the second input, why???

Kin Hang Lee
  • 11
  • 1
  • 2

0 Answers0