0

According to BODMAS i am not able to find how this answer came (Answer:- i=5,k=4)

int i,j,k; { j=5; i=2*j/2; k=2*(j/2); } //plz explain how k=4 come after running this đŸ€”

4th Dec 2017, 4:04 PM
DETECTOR
DETECTOR - avatar
6 Answers
+ 1
j=5
4th Dec 2017, 4:09 PM
DETECTOR
DETECTOR - avatar
+ 1
ok i got it thank you very much â˜ș
4th Dec 2017, 4:24 PM
DETECTOR
DETECTOR - avatar
0
then why i=5 came as i=2*2.5 (i=2*2{because its int}=> i=2*2=4; but answer in my book is i=5}
4th Dec 2017, 4:14 PM
DETECTOR
DETECTOR - avatar