Home » C Programming » Library Functions

What is the purpose of fflush() function.

Correct Answer: flushes all streams and specified streams.

Explanation:

"fflush()" flush any buffered output associated with filename, which is either a file opened for writing or a shell command for redirecting output to a pipe or coprocess.
Example:
fflush(FilePointer);
fflush(NULL); flushes all streams.

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion