Wednesday 25 September 2013

Coding 7 : scanf and fflush(stdin)

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”.
Coding example

No comments:

Post a Comment