嵌入式软件工程师&&太极拳
全部博文(548)
分类:
2011-02-20 20:03:46
#includeint main(void) { /* 4 1 2 4 4 8 4 2 1 4 */ printf("int = %d \n", sizeof(int)); printf("char = %d \n", sizeof(char)); printf("short = %d \n", sizeof(short)); printf("long = %d \n", sizeof(long)); printf("float = %d \n", sizeof(float)); printf("double = %d \n", sizeof(double)); printf("unsigned int = %d \n", sizeof(unsigned int)); printf("unsigned short = %d \n", sizeof(unsigned short)); printf("unsigned char = %d \n", sizeof(unsigned char)); printf("unsigned long = %d \n", sizeof(unsigned long)); // printf("unsigned double = %d \n", sizeof(unsigned double)); // printf("unsigned float = %d \n", sizeof(unsigned float)); printf("long long = %d \n", sizeof(long long)); printf("long double = %d \n", sizeof(long double)); // printf("long float = %d \n", sizeof(long float)); return 0; }