#include int main() { char C, B; int x; printf(\"What comes after G\\n\"); scanf(\"%c\", &C); printf(\"What comes after
You need to eat up the white space (i.e. new line) - as per the manual page http://linux.die.net/man/3/scanf