+ 2

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

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

14th Oct 2017, 2:52 PM
Anshika Maurya
Anshika Maurya - avatar
1 Resposta
+ 12
Uh, you have x = 5 initially. And for that equation: 5+5+3+3+2 = 18 ** "x += ..." means "x = x + ..."
14th Oct 2017, 3:10 PM
Dev
Dev - avatar