The expressions and their output as seen on Codeblocks 12.11 are -
int i = 1, x;
x = i++ + i++ + ++i ++i
output : x = 7 and i = 5;
But for the following -
int i = 1, x;
x = ++i ++i + i++ + i++
output : x = 12 and i = 5;
Can anyone be kind enough to help me know how to solve these types of expressions correctly ?
Thanks in advance.