1.

Which of the following is used to create an output stream?(a) ofstream(b) ifstream(c) iostream(d) fsstreamI have been asked this question in class test.My enquiry is from File Handling in chapter Strings, Streams & Numerics in C++ of C++

Answer»

Right choice is (a) ofstream

The explanation: ofstream is used to create an output stream in C++ FILE handling operations. Ofstream OBJECTS are used to read FILES.



Discussion

No Comment Found

Related InterviewSolutions