CS Electrical And Electronics
@cselectricalandelectronics

fflush(stdin); What is the use of it?

All QuestionsCategory: C Languagefflush(stdin); What is the use of it?
Anonymous asked 3 years ago
1 Answers
Anonymous answered 3 years ago

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).