/* 输出各整型的字节长度 */ #include <stdio.h> int main(void) { printf("sizeof(short int) = %d\n", sizeof(short int)); /* sizeof的结果都是int型 */ printf("sizeof(int) = %d\n", sizeof(int)); printf("sizeof(long int) = %d\n", sizeof(long int)); printf("sizeof(long long int) = %d\n", sizeof(long long int)); return 0; }
by: 发表于:2017-08-15 10:51:34 顶(0) | 踩(0) 回复
??
回复评论