Hi, I don't know if I good understand that:
a = 3
b = ++a + (a-- * ++a)
1. first a-- from parentheses: b = 3 + (2 * 3)
2. second ++a from parentheses: b = 3 [3-1(postfix a--)+1(prefix ++a)] + (3 [2+1(prefix ++a)] * 3 [3-1(postfix a--)+1(prefix ++a)])
3. third ++a outside parentheses: b = 4 [3+1(prefix ++a)] + (4 [3+1(prefix ++a)] * 4 [3+1(prefix ++a)])
4. b = 4 + (4 * 4)
5. b = 4 + 16
6. b = 20
If that it's true why b = ++a + ++a + (a-- * ++a) give me 34 instead 35 ?
Thanks a lot for yours answers.

# Hi, I don't know if I good understand

Resolved

a = 3in all these examples: 1)a-- * ++afirst you would consider the left most unary which is a-- which means you plug 3 into the equation at that spot and then decrement a to 2. Next move right to the ++a and increment a to 3 and then plug it into the equation. The equation becomes3 * 3and when run your answer will be92)++a * a--the left most unary is ++a which means increment a to 4 then plug that in. Next is a-- so you plug in the value of a of 4 then decrement a. The equation is4 * 4and equates to163)++a + ++a + (a-- * ++a)The left most unary increases a to 4 then uses that value. The next increases a to 5 then uses that value. The next is a post fixed so the value 5 is used and then a is decremented to 4. The last increases a to 5 and uses that value. The equation becomes4 + 5 + (5 * 5)which equates to344)++a + a-- + a++ + a-- * ++afollowing the above explanation this becomes:4 + 4 + 3 + 4 * 4which equates to27