#include <stdio.h>
#include <stdlib.h>
int main(){
printf("%f",8.0/5.0);
system("pause");
return 0;
}
no.1
8.0/5.0改成8/5
结果:0.000000
no.2
%f改成%d
结果-1717986918
#include <stdio.h>
#include <stdlib.h>
int main(){
printf("%f",8.0/5.0);
system("pause");
return 0;
}
no.1
8.0/5.0改成8/5
结果:0.000000
no.2
%f改成%d
结果-1717986918
转载于:https://www.cnblogs.com/ganeveryday/p/4382992.html