Re: C Interview Questions
- From: Adrian <nntp@xxxxxxxxxxxxxxx>
- Date: Mon, 30 Oct 2006 16:20:14 -0700
Richard Heathfield wrote:
dhruvaraj@xxxxxxxxx said:
6. .Identify the correct argument for the function call fflush() in ANSI C:
None of the candidate answers is uniquely correct. Three are wrong, and stdout is only /one/ correct argument for fflush.
Richard, could you tell me why all three are wrong. I thought stdin, stdout, stderr where all macros to FILE * for the 3 streams. Now the standard does say for buffered streams, are they not buffered?
Also the standard says you can pass NULL to fflush to flush all open streams.
Thanks
Adrian
.
- Follow-Ups:
- Re: C Interview Questions
- From: Richard Heathfield
- Re: C Interview Questions
- References:
- C Interview Questions
- From: dhruvaraj
- Re: C Interview Questions
- From: Richard Heathfield
- C Interview Questions
- Prev by Date: Re: finding how much the file system is full, from a C program?
- Next by Date: Re: Triangular Matrix
- Previous by thread: Re: C Interview Questions
- Next by thread: Re: C Interview Questions
- Index(es):
Relevant Pages
|
|