刚加入,不知道写什么,记录一下自己的学习之路。
#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
/*int main()
{
printf("hello world\n");
return 0;
}*/
//int main()
//{
// int age = 0;
// //输入一个数字到age
// scanf("%d\n", &age);
// printf("%d\n", age);
// return 0;
//}
//
//身高 -180-整型
//体重-49.6-小数-浮点数
//名字-lily
//int main()
//{
// //float weight = 49.6f;//double
// //printf("weight=%f\n", weight);
// int high = 180;
// printf("high=%d\n", high);
//}
int main()
{
printf("%d\n", sizeof(char));
printf("%d\n", sizeof(short));
printf("%d\n", sizeof(int));
printf("%d\n", sizeof(long));
printf("%d\n", sizeof(long long));
printf("%d\n", sizeof(double));
}