C++ Programming - OOPS Concepts - Discussion
Discussion Forum : OOPS Concepts - General Questions (Q.No. 12)
12.
cout is a/an __________ .
Discussion:
52 comments Page 2 of 6.
Pooja said:
1 decade ago
cout is predefined in iostream.h.
Can anyone tell me how it is object.
Can anyone tell me how it is object.
Pawan gupta said:
1 decade ago
It belongs to iostream class so member of any class is an object.
Saba said:
1 decade ago
I think cout is a function similar to printf in C programming. It may be an object only when we define it so but primarily it can't be an object.
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.
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?
Pratishruti said:
1 decade ago
Why not cout be an operator<<?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers