Computer Science, asked by israt8777, 14 hours ago

Find the final value of ‘a’ from the given expression : a+=b++ * 5 /a++ +b; [a=40, b=10 ]​

Answers

Answered by 4400aditya
2

Answer:

a= b++*5/a++ +b

a = 48+(13*5)(48+14)

=48+(65/48)+14

=48+1+14

=63

Answered by presentmoment
0

The answer is 41.

Explanation: a+=b++ *5/ a++ +b

the value of a is 40. So, the value of a++ will be 40. Because firstly the value of a will be used and then incremented.

The value of b is 10. Hence the value of b++ is 10. As, b++ is the post increment operator.

a+ = 10*5/40+10

a+= 1

We can write a+=1 as : a=a+1

So, the value of a=a+1 will be

a = 40+1

a= 41

Similar questions