(a) x + = x++ + + x +--x; [x = 3]
Answers
Answered by
1
Question:-
x = 3;
x += x++ + ++x + --x;
Answer:-
x = 15
Reason:-
' += ' is a shorthand operator.
•°• x += x++ + ++x + --x means x = x + x++ + ++x + --x
x += x++ + ++x + --x
= x = 3 + 3 + 3 + 5 + 4
= x = 15
Similar questions