Ifx=5,then find x=x++*2+3*--x
Answers
Answered by
1
Answer:
x=22
Explanation:
Here we can see two types of increment,
1. Pre Increment or Decrement (--x)
2. Post Increment or Decrement (x++)
so , the value of x here is 5
and the value of x++ for 1st iteration will be same that is 5.
and the value of --x for 1st iteration is 4 (reduced by 1)
x = 5*2+3*4
x = 10+12
x=22
Mark me as Brainliest if you like my answer. thank you
Similar questions