Q6) What will be the result stored in x after evaluating the following expression? int x=4; x += (x++) + (++x) + x;
Answers
Answered by
58
Answer:
x + = x++ + ++x + x
x+ = 4 + 6 + 6
x+ = 16
x = 20
Answered by
24
Answer:
20
Explanation:
x+ = (x++) + ( ++x) + x
= 4+(4+6)+6
= 20
Similar questions