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

Amarn kokare said:   1 decade ago
count is a object of a ostream class and we can include a library file in program header, and using this object user can print a data on console.

Saba said:   1 decade ago
I think cout is a function similar to printf in C programming. It may be an object only when we define it so but primarily it can't be an object.

ALEX said:   1 decade ago
"cout" is an object of "ostream_withassign" class.
And
"cin" is an object of "istream_withassign" class.

Divya said:   1 decade ago
It is an object of ostream class, which is associated with extraction operator (<<) , here extraction operator is overloaded.

Aarti said:   1 decade ago
If count is an object in iostream.h, then what is the name of class of count's object, because every object must have an class.

Ashok@cmc said:   1 decade ago
cout is an object of class ostream that represents the standard output stream. It corresponds to the cstdio stream stdout.

Ved prakash said:   5 years ago
cout is an object of class ostream that represents the standard output stream. So the class is ostream and object is cout.
(1)

Sagar nale said:   3 years ago
Yes, cout is an object of the class ostream, and ostream is a class not cout thus cout is an object of the class ostream.
(4)

Sumeet said:   1 decade ago
cout is a stream extraction operator. It is an object of ios class which is predefined in iostream.h header file.

Shona said:   1 decade ago
cout is an object of class ostream that represents the standard output stream. So the class is ostream not cout.


Post your comments here:

Your comments will be displayed after verification.