+1

Why this code outputs 2 2 0?

https://code.sololearn.com/c0la4VMPnkTm/?ref=app

8/28/2019 7:03:35 AM

_rk

3 Answers

New Answer

+5

In your contest the result depends HIGHLY by compiler... Read here https://en.cppreference.com/w/c/language/eval_order

+5

+ Don't do this. You should split the expression in different printf statements.

+2

... or use variables and use them, after proper calculations, onto printf