0

Giving a=10, b=2.5, c=6; what will be the output of 1Ā° int m= a-b*c; 2Ā° char k= (a%2==0?'P','R'); 3Ā°float p=5+c/a;

what is the output of this?

20th Mar 2017, 4:12 PM
Stherdo Wss
Stherdo Wss - avatar
1 Answer
+ 1
1. m=a-b*c = 10 - 2.5 * 6 = 10 - 12 = -2 2. char k= (a%2==0?'P','R'); =(10%2==0?'P':'R') ='P' 3. float p=5+c/a =5+2.5/10 =5+0.25 =5.25
20th Mar 2017, 4:52 PM
ą¤¦ą„‡ą¤µą„‡ą¤‚ą¤¦ą„ą¤° ą¤®ą¤¹ą¤¾ą¤œą¤Ø (Devender)
ą¤¦ą„‡ą¤µą„‡ą¤‚ą¤¦ą„ą¤° ą¤®ą¤¹ą¤¾ą¤œą¤Ø (Devender) - avatar