Is there any difference between fflush(stdin) and getchar() | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

Is there any difference between fflush(stdin) and getchar()

4th Jan 2022, 9:36 PM
Tyt
4 Answers
0
They're completely different! Did you do the lessons?
5th Jan 2022, 3:00 AM
Emerson Prado
Emerson Prado - avatar
0
No. They both clean the buffer input
5th Jan 2022, 9:13 AM
Tyt
0
So do exit function and OS shutdown, and they're still completely different. Pls read getchar function definition, posted by Ipang . And pls do related lessons.
5th Jan 2022, 2:10 PM
Emerson Prado
Emerson Prado - avatar