【单选题】以下对常见的几种整型数据长度排序正确的是?
A. sizeof(int)≤sizeof(short)≤sizeof(long)≤sizeof(long long) B. sizeof(short)≤sizeof(int)≤sizeof(long)≤sizeof(long long) C. sizeof(long long)≤sizeof(long)≤sizeof(int)≤sizeof(short) D. sizeof(int)≤sizeof(long)≤sizeof(short)≤sizeof(long long)
A. sizeof(int)≤sizeof(short)≤sizeof(long)≤sizeof(long long) B. sizeof(short)≤sizeof(int)≤sizeof(long)≤sizeof(long long) C. sizeof(long long)≤sizeof(long)≤sizeof(int)≤sizeof(short) D. sizeof(int)≤sizeof(long)≤sizeof(short)≤sizeof(long long)
举一反三
- 21.在C语言中,结果不等于4的表达式是( )。 A: sizeof(double) B: sizeof(long) C: sizeof(float) D: sizeof(unsigned long)
- 经下列语句定义后 ,sizeof(x),sizeof(y),sizeof(a),sizeof(b) 在 微机上的值分别为 (). char x; int y; long a; double b;
- 以下代码段的结果是:int i=10;long long t = sizeof(i++);printf(
- 中国大学MOOC: 以下代码段的结果是:int i=10;long long t = sizeof(i++);printf(
- 对于一维整型数组a,计算其含有多少个数组元素,下列方法正确的有? A: sizeof(a)/sizeof(a[0]) B: sizeof(a)/sizeof(int) C: sizeof(a[0])/sizeof(a) D: sizeof(a[0])/sizeof(int)