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