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.

Rajasekhar said:   1 decade ago
<< is an operator which can print data on a console.

"<<" is an operator that can be overloaded in such a way that can print data on console in ostream class.

cout is an object, when ever cout << "Raja sekhar"; executes.

Compiler class as cout.operator<< (.).

Sabari said:   1 decade ago
var = cout<<something twist this is return any thing because its a function.

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

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.

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

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

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

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

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

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


Post your comments here:

Your comments will be displayed after verification.