Computer Science - Object Oriented Programming Using C++ - Discussion

Discussion Forum : Object Oriented Programming Using C++ - Section 1 (Q.No. 48)
48.
The _____ mode tells C++ to open a file for input
add::ios
in::file
ios::app
ios::in
ios::out
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
4 comments Page 1 of 1.

Sudarshan patidar said:   4 years ago
ios::in allows input (read operations) from a stream.
ios::out allows output (write operations) to a stream.
(1)

Sumit said:   1 decade ago
Please provide explanation.

Lakshyajit said:   1 decade ago
ios means input output streams, :: it is scope resolution operator and in is for input operation.

ios::out = Open for output operation.

ios::in = Open for input operation.

Sangeetha said:   10 years ago
Ios :: In Open a file for read operation not for inputting.

Post your comments here:

Your comments will be displayed after verification.