+ 1

Why does it print a memory location when we run "cout<<cout"?

#include <iostream> using namespace std; int main() { cout<<cout; return 0; } Output:0x467f84

3rd Jul 2016, 10:40 AM
[No Name]
4 Antworten
+ 2
bcz cout is also an object of class ostream in the iostream.h header file
3rd Jul 2016, 3:00 PM
Vijayendra
Vijayendra - avatar
+ 1
At what does cout point to?
3rd Jul 2016, 11:40 AM
[No Name]
0
salam
3rd Jul 2016, 11:29 AM
hassan
0
Thanks for helping
3rd Jul 2016, 11:41 AM
[No Name]