Computer Science, asked by abhijeetroy1725, 8 hours ago

If a=30, b=15 then find the value of k=b++ + ++b – (- -a) + - -b;
Plz Answer don't spam ​

Answers

Answered by ravanshika
1

19

Explanation:

b++ + ++b-(--a)+--b

15+17-29+16

because in b++ the value will be taken as 15 but the value will increase after storing so in ++b the value of b was already 16 and then due to prefix it increased to 17 and then in a it is a negative prefix so the valur will decrease to 29 and lastly in --b the value of b was 17 and due to negative prefix it will decrease to 16

Similar questions