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.

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

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

Please tell me the answer any one tell me.

Shreyas said:   1 decade ago
iostream has 2 parts istream and ostream and cout is found in ostream class but the apparent answers are both ostream and iostream.

Sailee shazmeen said:   1 decade ago
We also confuse about iostream and ostream.

Arpita said:   10 years ago
Here as asked in the question the correct class of cout not for cout an cin.

So the correct one is ostream if it is asked cin and cout both then it is iostream.


Post your comments here:

Your comments will be displayed after verification.