4 Answers
New Answera = 5 b = 6 a = b++ (a = 6, b = 7) c = ++a (c = 7, a = 7) a + c = 14 If the plus signs are before the varible then it adds one before considering the rest of the equasion, if it is after, it adds one after the equation is done
After a=b++; A becomes 6 and b becomes 7 After c=++a; A becomes 7 before assigning value to c, so c is 7 too. (7+7=14)
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message