Because "%c" is special, in the way that it doesn't ignore whitespace. If you want it to, you need to add a space before the percent sign, like this:
Code:
scanf(" %c", &ch);