When using scanf to read input in C, the function reads the input up to the first whitespace character, which is usually a newline character '\n'. When reading a char immediately after reading other types (such as int or float), the leftover newlin...

Markdown supported · ⌘↵ to post
No responses yet.