struct we
{
long float a;
}ni;
int main()
{
struct we* qe=NULL;
qe = (struct we*)malloc(sizeof(struct we));
double b=0;
b =1.23738214641491645;
qe->a = b;
printf("%.16lf\n", qe->a);
printf("%.8lf\n", qe->a);
printf("%.4lf\n", qe->a);
printf("%.2lf\n", qe->a);
printf("%lf\n", qe->a);
printf("%.16lf\n", b);
printf("%.8lf\n", b);
printf("%.4lf\n", b);
printf("%.2lf\n", b);
printf("%lf\n", b);
printf("占%d\n", sizeof(qe->a));
printf("占%d", sizeof(b));
free(qe);
return 0;
}
在Visual Studio中
想当于long float ≈double
对于现在的我(才接触c没一两个月)比较吃瓜
有能大佬说一说吗?