we use the fflush function to flush out the unwanted characters. But,i want to know that "how it works?".And what will happen if we don't use it?
about fflush function.
Collapse
X
-
Tags: None
-
fflush
If stream points to an output stream or an update stream in which the most recent operation was not input, the fflush() function causes any unwritten data for that stream to be written to the file, and the st_ctime and st_mtime fields of the underlying file are marked for update.
If stream is a null pointer, the fflush() function performs this flushing action on all output or update streams in which the most recent operation was not input.
Comment