1.

Which of the following is the default mode of the opening using the ifstream class?(a) ios::in(b) ios::out(c) ios::app(d) ios::truncThe question was asked in exam.My query is from File Handling topic in section Strings, Streams & Numerics in C++ of C++

Answer»

Correct answer is (a) ios::in

Explanation: By DEFAULT, the FILE is opened in ios::in MODE if the file object we are USING is of IFSTREAM class.



Discussion

No Comment Found

Related InterviewSolutions