41.8k views
4 votes
Why use fflush(stdin) in C programming language?

User SeanVDH
by
8.8k points

1 Answer

0 votes
It is a a function which helps us you to clean the input buffer.
you can use this function if you are thinking that there might be some problem creating data during user inputs from stdin.
User Sinaraheneba
by
8.1k points