1.

fflush(NULL)flushes all ____________(a) input streams(b) output streams(c) previous contents(d) appended textThis question was posed to me at a job interview.My doubt is from File Operations topic in section Input and Output in C of C

Answer»

Correct choice is (B) OUTPUT streams

Easy EXPLANATION - fflush(FILE *stream) – fflush() causes any buffered but unwritten to be written on an Output stream. On an input stream, the effect is undefined. fflush(NULL)FLUSHES all output streams.



Discussion

No Comment Found

Related InterviewSolutions