C++ Programming - OOPS Concepts - Discussion

Discussion Forum : OOPS Concepts - General Questions (Q.No. 12)
cout is a/an __________ .
Answer: Option
No answer description is available. Let's discuss.
52 comments Page 1 of 6.

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

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 ?

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.

Sandesh said:   1 decade ago
cout is a object and not a function. cout is an output stream object that refers to the monitor whereas cin refers to the keyboard.Both are defined in the header file <iostream.h>

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.

RAJESH said:   1 decade ago
Its object in ostream.h header file and cin is in istream.h.

Navin said:   1 decade ago
If cout is an object. Can anyone tell me where this object is getting created ?

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.

Post your comments here:

Your comments will be displayed after verification.