/* * scanchars3.c -show how the was passed to the scanf */ #include int main(void) { char char1, char2, char3; printf("Enter a character:"); scanf("%c", &char1); printf("Enter a character:"); scanf(" %c", &char2); // the space is key printf("Enter a character:"); scanf(" %c", &char3); // the space is key printf("You entered: %c%c%c\n", char1, char2, char3); return 0; }