Let me apologize in advance for choosing this unspecific title. I had problems finding a good one, since i dont really get what the problem here is.
So given this code:
int fa()
{
cout << "test";
return 3;
}
int main()
{
cout << "Hello" << fa() << endl;
}
it outputs this:
testHello3
and i dont know why? I expected it to output: Hellotest3
since "Hello" comes first in order after cout. I guess i'm having a false understanding of the cout behavior, but why?