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