Computer Science, asked by yashchouhan005, 7 months ago

x-=--x+ ++x - --x*2 if x = 6​

Answers

Answered by suzen61
1

Explanation:

x = 3;

x = ++x + (++x);

++x would increase ‘x’ by one and use this value. If you add 1 to the current value of x, which is 3, then you have 4.

x = 4 + (++x);

++x would increase ‘x’ by one again and use (again) this value. If you add 1 to the current value of x, which is 4, then you have 5.

x = 4 + (5);

Sum the remainders, and the solution of your question would be:

x = 9.

Similar questions