a=0,b=10,c=40 a= - - b +c ++ +b systemout.println ("a = " + a);
Sir/mam how the answer is coming 58
Answers
Answered by
0
Explanation:
The --b is a pre-decrement operator. It decrements value of B by 1 before calculating.
So, b becomes 29 in calculation.
The c++ is a post increment operator. It increments the value of c by 1 after calculation. So in our case, c still remains 40
So, a= 29+40+29
a=98
So, answer is 98
Similar questions