#include<stdio.h>
int main()
{
double a=3.45;
printf("%f\n\n",a);
printf("%d\n\n",(int)(a));
printf("%d\n\n",(int)a);
printf("%d\n\n", int(a));
/*printf("%d\n\n", int a);*/
}
标签:类型转换,int,C语言,printf,强制,表达式 From: https://www.cnblogs.com/xiaosongshu2023/p/17848102.html