Computer Science, asked by pv057966, 6 months ago

what is the result stored in x after evaluating the following
int x =5
x=x++*2+3*--x

please don't spam
it's urgent​

Answers

Answered by jhalaksharma
2

Answer:

Given x=5

To Find Value

x+x×2+3×-x

= 5+5×2+3×-2

=5+10+-6

= 15+-6

= 9ANS

Answered by Anonymous
1

Answer:

Thank you very much for your Thanks

and sorry for interrupting on your question

Explanation:

x++ =5 so..

5*2 = 10

(x=6 here the increment happends after the value is used)

3*5 ➡(1 is taken from x first before the value is used this is why its 5 again)

5*2 = 10

3*5 = 15

x = 25

Similar questions