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 2 of 4.

Jiya said:   8 years ago
The iostream can be used for both cin and cout but asking in question only cout so ans is ostream.
(1)

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.

Preet said:   9 years ago
Hi, iostream is the correct answer. Briefly, explain ostream and why the answer is ostream?

Pratibha agarwal said:   1 decade ago
I think iostream is correct because it is common and it consist of both input and output.

Venkatesh said:   1 decade ago
Cout: Ostream correct or wrong.

Please tell me the answer any one tell me.

Abc said:   1 decade ago
iostream is correct answer because ostream is not any header file in C++.

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

Paris said:   1 decade ago
iostream is right as it is for both the cin and cout objects.

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

Subhash Kumar said:   2 years ago
The cout object is defined in the iostream class.
(1)


Post your comments here:

Your comments will be displayed after verification.