In this page, I will tell about scanf and
“flush”.
Scanf is used for accept inputing that you
entered through keyboard. But to erase buffer in programming, we need “flush(stdin)”.
1.fflush(stdin)
Benefit : erase data in output buffer that
wasn’t needed.
Here is example how to use scanf and “flush”.
No comments:
Post a Comment