Multiple choice technology programming languages

We can portably use the fflush(stdin); statement to clear the remaining characters in input stream.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Using fflush(stdin) is undefined behavior according to the C standard, which specifies that fflush is only defined for output streams. While some compilers (like MSVC) allow it as an extension, it is not portable across standard-compliant platforms.