This is a simple case of rounding. The float f is 10.501, and when we cast it to an integer, it should round up to 11. Option B is the correct answer, no doubt about it.
Haha, the question mark is just there to confuse us. It's a classic trick question! I'm going to go with option D, because who doesn't love a bit of chaos in their code?
Wilburn
4 months agoArthur
5 months agoDominga
5 months agoLottie
5 months agoHaley
5 months agoLigia
6 months agoMaryann
6 months agoHoward
6 months agoZena
6 months agoRoselle
6 months agoGerman
6 months agoDaisy
6 months agoTijuana
6 months agoJennifer
11 months agoEmilio
11 months agoCyndy
10 months agoEmily
10 months agoHelaine
10 months agoLouisa
11 months agoSherell
10 months agoRhea
10 months agoCandra
10 months agoMarva
11 months agoShawna
1 year agoHarris
1 year agoShawna
1 year ago