IndiaBIX.com
Arithmetic Aptitude Data Interpretation
Logical Reasoning Verbal Reasoning Non Verbal Reasoning
General Knowledge
Sudoku Number puzzles Missing letters puzzles Logical puzzles Playing cards puzzles Clock puzzles
C Programming C# Programming Java Programming
Networking Database Questions Computer Science Basic Electronics Digital Electronics Electronic Devices Circuit Simulation Electrical Enigneering Engineering Mechanics Technical Drawing
Placement Papers Group Disucssion HR Interview Technical Interview Body Language
Aptitude Test Verbal Ability Test Verbal Reasoning Test Logical Reasoning Test C Programming Test Java Programming Test Data Interpretation Test General Knowledge Test
Data Structures Operating Systems Networking DATABASE Database Basics SQL Server Basics SQL Server Advanced SQL Server 2008 JAVA Core Java Java Basics Advanced Java UNIX Unix File Management Unix Memory Management Unix Process Managemnt C Interview Questions The C Language Basics .NET Interview Questions .NET Framework ADO.NET ASP.NET Software Testing

C Programming - Library Functions - Discussion

@ : Home > C Programming > Library Functions > General Questions - 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.

Write your comments here:
Name *:     Email:


© 2008-2011 by IndiaBIX™ Technologies. All Rights Reserved | Copyright | Terms of Use & Privacy Policy

Advertise     Contact us: info@indiabix.com     Follow us on twitter!