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

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.

Chandan said:   1 decade ago
Object is the simple variable of a class. So if we will open <iostream> header then we can found the statement.

Extern ostream cout; means cout is the variable of ostream class so. For this reason it is an object.

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

Amar said:   1 decade ago
Object through call the value to accept and display function then use cout and cin in an object.

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

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

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

Meester anony said:   1 decade ago
Cout is when someone tries saying caught but doesn't know how to pronounce it properly.

Rohini said:   1 decade ago
cout is an object because it is an object of ostream and we use the header file <iostream> here. It allows both input and output operations.

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


Post your comments here:

Your comments will be displayed after verification.