为啥这里强制转换是错误的呢?
#include
int main() { float a,b,c,d; float result; a = 1; b = 2; c = 3; d = 4; result =(a + b+ c) /d; //在这里体验哦~ printf("%d\n",(int)result; return 0; }#include
int main() { float a,b,c,d; float result; a = 1; b = 2; c = 3; d = 4; result =(a + b+ c) /d; //在这里体验哦~ printf("%d\n",(int)result; return 0; }2018-07-09
举报