C语言(二十四)long long 与 long double
作者:互联网
long long 与 long double
1、程序:
#include<stdio.h>
void main()
{
long long num0=123456;
long double num1 = 1.123456;
printf("num0=%lld\n", num0);//长整数 %lld输出
printf("num0sizeof=%d\n", sizeof(num0));//8字节
printf("num1=%lf\n", num1);
printf("num1sizeof=%d\n", sizeof(num1));//8字节
getchar();
}
2、运行结果:
标签:num0,num1,double,long,C语言,printf,sizeof 来源: https://blog.csdn.net/lostlll/article/details/120490595