2 questions
I thought 0.5 would come out if I said 1/2, but 0 came outIf you divide two integers, you just cut off the decimal pointWhen a and b are int c = a/bHow do we get c to float as a result?a = 1b = 2print...
Which one is better between the two methods below? Please write down the reason, tooint x = 3;x = x >> 1;x = x / 2;
© 2024 OneMinuteCode. All rights reserved.