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.

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

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<< (.).

Manish Jatiwal said:   1 decade ago
cout is object of class ostream.

cin is object of class istream.

Extraction and insertion are operator.

Pritesh said:   1 decade ago
Give definition of object.

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

Bhagyashree said:   1 decade ago
cout is an object of ostream_withassign class.

Naman said:   1 decade ago
Object of class ostream that represents the standard output stream oriented to narrow characters (of type char). It corresponds to the C stream stdout.

Lalit said:   9 years ago
cout is a statement. So, why it is an object.

Shubham said:   9 years ago
How its an object?

Can anyone please explain it very well?

Pranil said:   9 years ago
How its an object? Please explain.


Post your comments here:

Your comments will be displayed after verification.