Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 13
Use of fflush(stdin) in C. fflush() is typically used for output stream only. Its purpose is to clear (or flush) the output buffer and move the buffered data to console (in case of stdout) or disk (in case of file output stream). https://www.geeksforgeeks.org/use-fflushstdin-c/
23rd May 2018, 6:30 AM
Abhivarshini Maddala
Abhivarshini Maddala - avatar