I have written this little code for one of my student coworker, in order to illustrate overloading in c++ :
#include <iostream>
int main() {
std::cout << "Hello World!";
std::cout.operator<<("Hello World!");
return 0;
}
I thought naively I will have two times "Hello World!". But the second line send me an adress. I don't understand why ?