Source code:
#include <iostream>
using namespace std;
int main()
{
cout.operator<<("test string");
return 0;
}
The output as follow:
0046B01C ----why it's an address?
My question:
1) Why the output was an address and why not "test string" as expected
?
2) What's the difference between
cout<<"test";
and
cout.operator<<("test");
?
(I had thought they were the same! )