Computer Science, asked by Helpneeded8826, 11 months ago

If x=3,y=7,calculate the value of x-=x++-++y

Answers

Answered by VaibhavKulkarni
11

We can rewrite the given expression as follows -

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

Let us break down the expression and compute the results for better understanding

x++ - ++y

= 3 - 8

= -5

Since we performed post increment with the variable x, after execution of that line, we have x=4

Therefore,

x - (-5)

= 4 + 5 (- * - = +)

= 9

Finally, we have x = 9

Answered by harshitbhatia206
8

Answer:

Explanation:

X=x-(x++ -++y)

=3-(3 +8)

=3-3+8

=8

Similar questions