82.5那个用long double输出就是0.000000了怎么回事啊?
#include<stdio.h>
#include<stdlib.h>
int main()
{
float i = 82.5;
long double j = i;
printf("%f",j);
getchar();
return 0;
}
82.500000
#include<stdio.h>
#include<stdlib.h>
int main()
{
float i = 82.5;
double j = (float) i;
printf("%f",j);
getchar();
return 0;
}
float i = 82.5;
double j = (float) i;
printf("%f",j);