Computer Science, asked by neerajsingh12345, 6 months ago

what will be the result stored in a after evaluating following expression int a=7;
a- =a+ + + + + a+ - -a+a- -;​

Answers

Answered by Anonymous
1

Answer:

x+=(x++)+(++x)+x; // (x+=) is a short hand             operator which means x=x+ and (x++) is a post fix operator which will use the old value of x first and then change the value internally and at the next time the variable will be used it will use the new value  

x=4+4+6+6;

x=20;x+=(x++)+(++x)+x; // (x+=) is a short hand             operator which means x=x+ and (x++) is a post fix operator which will use the old value of x first and then change the value internally and at the next time the variable will be used it will use the new value  

x=4+4+6+6;

x=20;

Similar questions