0

Evaluate expression- (given a=15; b= 10 ) 1) a % b++ 2) ++a – b--

Help me out I'm confused!!!

19th Aug 2020, 9:50 AM
Darpan Kushwaha
Darpan Kushwaha - avatar
2 Respostas
+ 5
In both cases answer will be same 5. first you have to learn about increment amd decrement how its working after that you can calculate easily
19th Aug 2020, 6:35 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 3
a = 15 and b = 10 a % b++ = 15 % 10 = 5 // b will now be 11 because of ++ ++a - b-- = 16 - 11 = 5
19th Aug 2020, 9:54 AM
Avinesh
Avinesh - avatar