+ 2

# x+=x-- + --x + x++ +2

What will be the value of x after evaluating if x=5 before evaluation

1 Answer

+ 12

Uh, you have x = 5 initially.
And for that equation:
5+5+3+3+2 = 18
** "x += ..." means "x = x + ..."

+ 2

What will be the value of x after evaluating if x=5 before evaluation

1 Answer

+ 12

Uh, you have x = 5 initially.
And for that equation:
5+5+3+3+2 = 18
** "x += ..." means "x = x + ..."