单项选择题

float f=3.45;int a=(int)f;
a的值为 A.
3 B.
4 C.
编译报错 D.
null