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

ABHISHEK KUMAR JHA said:   1 year ago
I think iostream is the right answer.
(2)

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

Rohan said:   2 years ago
According to me, ostream is correct.
(1)

Vishal Gupta said:   2 years ago
Iostreme is the correct answer.
(4)

Esk said:   4 years ago
Cout ostream is the correct form.

Jyoti said:   5 years ago
Agree, C is the correct answer.
(1)

Kicha said:   6 years ago
iostream means both cin and cout, istream means only cin and ostream mean the only cout so ostream is correct.
(15)

Sachin kumar said:   7 years ago
According to me, iostream is correct.

Dhiraj Hargode said:   7 years ago
Actually they ask for object not for header file ao in iostream header file two different objects are there for different purposes ostream for cout and itream for cin purpose.

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)


Post your comments here:

Your comments will be displayed after verification.