//#include<stdio.h>
//
//
//
//
//char 字符型 1
//short 短整型 2
//int 整形 4
//long 长整型 8
//long long 长长整形 8
//float 单精度浮点型 4
//double 双精度浮点型 8
//
//sizef()计算大小
//printf("%zu\n");//打印一个sizeof返回的无符号整型
//1byte占8个bit
//byte = 1kb
//
//
//int main()
//{
// printf("%zu\n", sizeof(int));//int 占几个字节
// printf("%d\n", sizeof(short));
// printf("%d\n", sizeof(char));
// printf("%d\n", sizeof(long));
// printf("%d\n", sizeof(long long));
// printf("%d\n", sizeof(float));
// printf("%d\n", sizeof(double));
//
// return 0;
//}
//
//
C语言数据类型
于 2024-05-14 12:38:37 首次发布