C Programming - Library Functions - Discussion
Read more: "To err is human; to forgive, divine."
- Alexander Pope
6.
What is the purpose of fflush() function.
[A].
flushes all streams and specified streams. [B].
flushes only specified stream. [C].
flushes input/output buffer. [D].
flushes file buffer.
Answer: Option B
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.
Ramesh said:
(Wed, Jun 30, 2010 06:43:57 AM)
Tell me the meaning of flush.
Riya said:
(Fri, Dec 31, 2010 01:54:28 AM)
What is flush?
Rahul said:
(Wed, Jan 19, 2011 11:43:39 AM)
In the simple mean of flush that to remove ALL the useless thing.
We use the flush to clear the unusefull space which is use in programming.
Rajesh said:
(Mon, Jul 11, 2011 04:12:57 AM)
Thank rahul.
Madhuri said:
(Wed, Dec 28, 2011 12:23:01 PM)
Plese explain with an example program.
Ankita said:
(Sun, Jan 8, 2012 11:39:36 PM)
Yaa please explain with an example.