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.

Salman said:   9 years ago
I also want to know that, please deacribe it.

Lata said:   9 years ago
How cout is an object?

Explain.

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

Divya said:   8 years ago
In c++, iostream is the header file, which contains i stream and o stream, jectathis two are objects, so cin is istream object and cout is ostream object.

Gaurav Singh said:   8 years ago
The cout is an object of class ostream that represents the standard output stream oriented to narrow characters (of type char). It corresponds to the C stream stdout.

Manoj Kumar Patel said:   8 years ago
In C programming language, We consider printf and scanf to be functions. when it comes to cout and cin, in C++ what are they?

I mean they cant be functions as they are not followed by parenthesis, so they are not functions .cout is an object of the class.

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.

Suman.k said:   1 decade ago
Cout is stream extraction operator
It is predefined and the header file is iostream.h

Ratnesh said:   1 decade ago
cout is object of ostream class & cin is the object of istream class. istream & ostream makes iostream

Sanil said:   1 decade ago
Can anyone tell why cout is an object ?


Post your comments here:

Your comments will be displayed after verification.