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、运行结果: