Why does the following print out "World Hello!"?
From my understanding, according to operator precedence, this should be evaluated left from right. But instead it seems to be right to left to right. Why is this?
#include <iostream>
using namespace std;
char print() {
cout << "World";
return '!';
}
int main() {
cout << "Hello " << print() << endl;
return 0;
}