1.

A=0,b=10,c=40 a= - - b +c ++ +b systemout.println ("a = " + a); Sir/mam how the answer is coming 58

Answer» TION: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 40So, a= 29+40+29a=98So, ANSWER is 98


Discussion

No Comment Found