If I write this code:
const char * b = NULL;
std::cout << "Hello!" << b;
I get this output:
Hello!
However, if I change the order to:
const char * b = NULL;
std::cout << b << "Hello!";
I get no output whatsoever, so I'm curious about it.
I can guess that probably the << operator for cout reads until a NULL, so everything after it is ignored, but wonder if someone could give me some more insight about it.