Input Buffer in C
Jul 3, 2024 · 3 min read · 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...
Join discussion

