Machine-translated by Google. Questions are authored in English.
Top

Discussion

Why to use fflush() library function?

  • A.To flush all streams and specified streams
  • B.To flush only specified stream
  • C.To flush input/output buffer
  • D.Invalid library function

Answer: A

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

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.