Computer Science, asked by mb308361, 18 hours ago

(a) x + = x++ + + x +--x; [x = 3]​

Answers

Answered by ItzMeSam35
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