C++ Programming - OOPS Concepts - Discussion
Discussion Forum : OOPS Concepts - General Questions (Q.No. 12)
12.
cout is a/an __________ .
Discussion:
52 comments Page 5 of 6.
PAVAN GOLESAR said:
1 decade ago
cout is object of ostream.h header file and cin is object of istream.h header file.
NISHAD MAGDUM said:
1 decade ago
cout is object of class ostream and cin is object of class istream.
Naveen said:
1 decade ago
Why printf is function?
Ponnarasi said:
1 decade ago
cout is a print an output so why its called object.
Amol bendale said:
1 decade ago
Why cout is not function?
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.
Pratishruti said:
1 decade ago
Why not cout be an operator<<?
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.
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.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers