D
DaKoadMunky
cout << i++ << i++; // no, no
I am thinking that this is unspecified behavior rather than undefined given
that the statement is really...
operator<<(operator<<(cout,i++)),i++);
The output is unspecified behavior but the modifications to i are separated by
sequence points and thus do not lead to undefined behavior.
Can anyone confirm or deny this?
I am thinking that this is unspecified behavior rather than undefined given
that the statement is really...
operator<<(operator<<(cout,i++)),i++);
The output is unspecified behavior but the modifications to i are separated by
sequence points and thus do not lead to undefined behavior.
Can anyone confirm or deny this?