Computer Science, asked by gauri9938, 10 months ago

y = ++x + x++ - --x if x=1​

Answers

Answered by Anonymous
2

Answer:

if I'm right, it is Increment and dicreament operator.

y = ++x + x++ - --x if x=1

y = (x + 1) + (x + 1) - (x - 1)

y = (1 + 1) + (1 + 1) - (1 - 1)

y = 2 + 2 - 1 + 1

y = 4

Similar questions