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
6 months agoArthur
6 months agoDominga
7 months agoLottie
7 months agoHaley
7 months agoLigia
7 months agoMaryann
7 months agoHoward
8 months agoZena
8 months agoRoselle
8 months agoGerman
8 months agoDaisy
8 months agoTijuana
8 months agoJennifer
1 year agoEmilio
1 year agoCyndy
11 months agoEmily
11 months agoHelaine
1 year agoLouisa
1 year agoSherell
12 months agoRhea
1 year agoCandra
1 year agoMarva
1 year agoShawna
1 year agoHarris
1 year agoShawna
1 year ago