GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Programming  >  C
Go To First  |  Previous Question  |  Next Question 
 C  |  Question 411 of 419    Print  
fflush() argument in ANSI C
Identify the correct argument for the function call fflush() in ANSI C:
A)stdout
B)stdin
C)stderr
D)All the above



  
Total Answers and Comments: 5 Last Update: June 05, 2008     Asked by: prashanthi k 
  
 Sponsored Links



 
 Best Rated Answer
Submitted by: divyavenki
 
fflush()'s purpose is to write any buffered output data for the specified stream.fflush is used on the standard output stream because stdout is usually buffered and the output might not be prompted immediately.

Its prototype is
int fflush(FILE *stream_pointer);

Above answer was rated as good by the following members:
samcorp3
May 22, 2008 09:26:37   #1  
divyavenki Member Since: May 2008   Contribution: 2    

RE: fflush() argument in ANSI C
fflush()'s purpose is to write any buffered output data for the specified stream.fflush is used on the standard output stream because stdout is usually buffered and the output might not be prompted immediately.

Its prototype is
int fflush(FILE *stream_pointer);

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
May 29, 2008 02:18:25   #2  
geekkirankumar Member Since: May 2008   Contribution: 4    

RE: fflush() argument in ANSI C
it is used clear the data in the buffer which is entered previously.
ex: if i entered name: kiran
            now i have to enter age: here i will use fflush.
           entered age :   21.
          

 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
June 03, 2008 15:48:47   #3  
spacebat777 Member Since: June 2008   Contribution: 3    

RE: fflush() argument in ANSI C
A & D.  Both cases are *output* streams. 
 
Is this answer useful? Yes | No
June 03, 2008 15:49:26   #4  
spacebat777 Member Since: June 2008   Contribution: 3    

RE: fflush() argument in ANSI C
Sorry - it's A & C.
 
Is this answer useful? Yes | No
June 05, 2008 00:52:45   #5  
sunny madake Member Since: June 2008   Contribution: 1    

RE: fflush() argument in ANSI C
A)stdoutB)stdinC)stderrD)All the above

Answer :: D] All the above

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links



 
Sponsored Links

 
Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape