Computer Science, asked by sharitagaur1606, 8 months ago

Give the output where int a=12,b=8 a=a+++++a/6+b++%3+++b-a++

Answers

Answered by tofailahmad379
0

Answer:

a=12,b=8

a=a+++++a/6+b++%3+++b-a++

For this expression

a++=13 but in expression has to put 12 because it is post increament

Now for

++a=13+1=14

For b++=9 but because of post increment put 8

For ++b= 9+1 = 10

And then a++=15 but an expression has to put the previous value of a

a=12+14/6+8%3+10-14 8%3=remainder

a=26/6+2-4. 26/6=quotient

a=4+2-4

a=2

Similar questions