I read in a 'int' using scanf, then a 'char' using scanf again, but the 2nd scanf reads the <enter> instead of the character that I type in next. When i add a \n in my control string like this:
Code:
scanf( "\n%c", &c );
it doesn't read in the <enter>, can anyone explain to me why?