C++ Programming - OOPS Concepts - Discussion

Discussion Forum : OOPS Concepts - General Questions (Q.No. 26)
26.
Which of the following is the correct class of the object cout?
iostream
istream
ostream
ifstream
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
35 comments Page 4 of 4.

Mandy said:   1 decade ago
I think so iostream is the correct answer because it includes both input AND output i.e. I and O.

M. azhar faroq said:   1 decade ago
iostream is correct it is used in both cin and cout?

Shubham said:   1 decade ago
Please explain this. I'm also confused between iostream and ostream.

Babaljeet said:   1 decade ago
But iostream includes both input and output operations then why iostream is not correct for cout ?

Amruta said:   1 decade ago
In iostream, 'i ' is input and 'o' is output. And cin object is used based on 'i' stream and cout as 'o' stream


Post your comments here:

Your comments will be displayed after verification.