1.

Which of the following is used to create a stream that performs both input and output operations?(a) ofstream(b) ifstream(c) iostream(d) fstreamThis question was posed to me in class test.This intriguing question comes from File Handling in chapter Strings, Streams & Numerics in C++ of C++

Answer»

Right choice is (d) fstream

Easy EXPLANATION - fstream is used to CREATE a stream that performs both input and output OPERATIONS in C++ FILE handling.



Discussion

No Comment Found

Related InterviewSolutions