unsigned long int和long
signed short int和short
unsigned short和short
short int和int
第1题:
下列各组类型声明符中,含义相同的一组是( )。
A.unsignedlongint和long
B.signedshort和short
C.unsignedshort和short
D.shortint和int
第2题:
Java语言中数值数据的类型能自动转换,按照从左到右的转换次序为()。
A.byte→int→short→long→float→double
B.byte→short→int→long→float→double
C.byte→short→int→float→long→double
D.short→byte→int→long→float→double
第3题:
以下程序的输出结果是______。 main() { unsigned short a=65536;int b; printf("%d\n",b=a); }
A.0
B.1
C.2
D.3
第4题:
自动类型转换是按优先关系从低级数据转换成高级数据,规定的优先次序是( )。
A.byte, short, char→int→long→float→double
B.float→int→long→byte, short, char→double
C.int→long→float→double→byte, short, char
D.double→int→float→long→byte, short, char
第5题:
有以下定义和语句,则sizeof(a.share)的值是( )。
struct date
{ unsigned int day;
unsigned int mouth;
unsigned int year;
union{int share1;
float share2;
}share;
}a;
第6题:
下列程序的输出结果是______。 main() { unsigned short a=65536;int b; printf("%d\n",b:a); }
A.0
B.1
C.2
D.3
第7题:
下列各组类型声明符中,含义相同的一组是( )。
A.unsigned longint和long
B.signed short和short
C.unsigned short和short
D.shortint和int
第8题:
假定编译器规定int和short类型长度分别为32位和16位,执行下列C语言语句: unsigned short a = 65534. unsigned int b ; b =a; 得到b的机器数为(41)。
A.00007FFEH
B.OOOOFFFEiH
C.FFFF7FFEH
D.FFFFFFFEH
第9题:
Java中整型包括()。
第10题:
下选项中不属于C语言的类型是()。
第11题:
public class Yikes { public static void go(Long n) {System.out.println(”Long “);} public static void go(Short n) {System.out.println(”Short “);} public static void go(int n) {System.out.println(”int “);} public static void main(String [] args) { short y= 6; long z= 7; go(y); go(z); } } What is the result?()
第12题:
int→unsigned→long→char
char→int→long→unsigned
char→int→unsigned→long
int→char→unsigned→long
第13题:
以下程序的输出结果是【 】。
main()
{ unsigned short a=65536; int b;
printfC%d\n",b=a);
}
第14题:
以下选项中不属于C语言的类型的是
A.signed short int
B.unsigned long int
C.unslgned int
D.long short
第15题:
以下选项中不属于C语言的类型的是 ______。
A.signed short int
B.unsigned long int
C.unsigned int
D.long short
第16题:
switch(c) 语句中c可以是int, long, char, float, unsigned int 类型。( )
第17题:
6 写出下列程序在X86 上的运行结果。
struct mybitfields
{
unsigned short a : 4;
unsigned short b : 5;
unsigned short c : 7;
}test
void main(void)
{
int i;
test.a=2;
test.b=3;
test.c=0;
i=*((short *)&test);
printf("%d\n",i);
}
第18题:
自动类型转换规定的优先次序是( )。
A.short,byte,char→long→int→float→double
B.short,byte,char→int→long―float→double
C.byte,short,char→long→int→float→double
D.byte,short,char→int→long→float→double
第19题:
基本数据类型精度从低到高排列正确的是()
A.byte short int float double
B.byte short int double float
C. short byte int float double
D. short byte int double float
第20题:
A.byte, short, int, long, float, double
B.boolean, byte, short, char, int, long, float, double
C.byte, short, char, int, long, float, double
D.byte, short, char
E.int, long, float, double
第21题:
下列哪种数据类型能表示的最大的值为65535?()
第22题:
在C程序中,设一表达式中包含有int,long,char和unsigned类型的变量和数据,这四种类型数据的转换规则是()。
第23题:
unsigned long int和long
signed short int和short
unsigned short和short
short int和int
第24题:
int Long
Short Long
Compilation fails.
An exception is thrown at runtime.