1.

What is meant by ofstream in c++?(a) Writes to a file(b) Reads from a file(c) Writes to a file &Reads from a file(d) delete a fileThis question was posed to me in an interview.The question is from Output Stream topic in chapter Strings, Streams & Numerics in C++ of C++

Answer» RIGHT option is (a) WRITES to a file

Easy EXPLANATION - OFSTREAM is a stream class to write on FILES.


Discussion

No Comment Found

Related InterviewSolutions