若有定义:inta[5]={1,2,3,4,5};charb=’c’,c;,则下面表达式中数值为2的是()
第1题:
A、3
B、4
C、5
D、6
第2题:
若有定义inta=12,n=5,则表达式a%=(n%2)运算后,a的值()。
A.0
B.1
C.12
D.6
第3题:
若有定义inta=12;则表达式a+=a-=a*=a的值是-144。()
第4题:
A.2
B.5
C.32
D.92
第5题:
若有定义:“inta=4,b=5;floatx=3.4,y=2.1;”,则下列表达式的值为( )。
A.5.5
B.55
C.5.500000
D.55.00000
第6题:
下列的数组定义语句,不正确的是()
A、inta[]=newint[5]{1,2,3,4,5}
B、int[,]a=newinta[3][4]
C、int[][]a=newint[][4];
D、int[]a={1,2,3,4};
第7题:
若有定义语句:“int a=10;double b=3.14;”,则表达式A+a+b值的类型是( )。
A.char
B.int
C.double
D.float
第8题:
若有定义:inta=5,*b=&a;,则printf("%d\n",*b);语句的输出结果为()。
A.随机值
B.a的地址
C.6
D.5
第9题:
A.12
B.2
C.6
D.5
第10题:
A.inta[2][]={1,2,3,4,5}
B.inta[][2]={{0},{}}
C.inta[2][2]={{1,2},{3}}
D.inta[][]={1,2,3,4}