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
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
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
English,
3 months ago
Math,
3 months ago
Business Studies,
3 months ago
Social Sciences,
6 months ago
Science,
6 months ago
English,
11 months ago
Business Studies,
11 months ago
Biology,
11 months ago