How c++ or compiler version are changing the output?

Viewed 38

using 16 bit compiler e.g turbo c++

int a = 10; 
cout << a << a++ << ++a; 

Output 121111

When using 32/64 bit compiler or any online compiler

Output: 101012

Why this is happening I'm aware about associativity and precedence is it due to the compiler version or c++ version ?

0 Answers
Related