C++ Programming - OOPS Concepts - Discussion

Discussion Forum : OOPS Concepts - General Questions (Q.No. 12)
12.
cout is a/an __________ .
operator
function
object
macro
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
52 comments Page 4 of 6.

Salman said:   8 years ago
Cout: is an object of type ostream.

Cin: is an object of type istream.
(2)

NISHAD MAGDUM said:   1 decade ago
cout is object of class ostream and cin is object of class istream.

Pawan gupta said:   1 decade ago
It belongs to iostream class so member of any class is an object.

Siddhi dubey said:   1 decade ago
cout is similar to printf in C prog, so why it is not a function?

Muzamil said:   1 decade ago
If cout is an extraction operator, so how could be it an object?

Kiran said:   1 decade ago
cout is an object of ostream & cin is a object of istream.

Deepak Sindhwani said:   8 years ago
cout is an object, then why it is used without the class name?

RAJESH said:   1 decade ago
Its object in ostream.h header file and cin is in istream.h.

Shubham said:   9 years ago
How its an object?

Can anyone please explain it very well?

Suvarna Pawar said:   1 decade ago
It is wrong concept cout is not object its a function.


Post your comments here:

Your comments will be displayed after verification.