若有char c='8';short s=20;则表达式c+s的值的类型是()。
A.char
B.short
C.int
D.byte
第1题:
若有以下定义: char a: int b; float c; double d; 则表达式a*b+d c的值的类型为 ______。
A.float
B.int
C.char
D.double
第2题:
若有以下定义:char a;int b;float c;double d;则表达式“a*b+d-c”值的类型为( )。
A.float
B.int
C.char
D.double
第3题:
现有定义int a;double b;float c;char k;,则表达式a/b+c-k值的类型为
A.int
B.double
C.float
D.char
第4题:
若有定义语句:char s[10]="1234567\0\0";,则strlen(s)的值是______。
A.7
B.8
C.9
D.10
第5题:
若有以下定义: char s[20]="programming",*ps=s; 则不能代表字符o的表达式是_______。
A.ps+2
B.s[2]
C.ps[2]
D.ps+=2,*ps
第6题:
若有byte b=6;char c='c';则表达式b+c的值的类型是()。
A.int
B.byte
C.char
D.float
第7题:
若有float f=2.6f;short s=20;则表达式f+s的值的类型是()。
A.float
B.short
C.int
D.byte
第8题:
设有定义语句“char s[]="123";”,则表达式“s[3]”的值是 ( )
A.’1’
B.’3’
C.0
D.语法出错
第9题:
若有intx=10;charc=’d’;则表达式a+c的值的类型是()
第10题:
若有floatf=2.6f;shorts=20;则表达式f+s的值的类型是()
第11题:
7
8
9
10
第12题:
byte
int
short
char
第13题:
若有以下定义,则不能代表字符。的表达式是______。 char s[20]="programming",*ps=s;
A.ps+2
B.s[2]
C.ps[2]
D.ps+=2,*ps
第14题:
若有以下定义char a;int b;float c;double d;则表达式a*b+d-c值的类型为
第15题:
若有以下定义: char a;int b; float c;double d; 则表达式a*b+b-c值的类型为( )。
A. float
B.int
C.char
D.double
第16题:
若有定义语句:“char sE10]="1234567\0\0";”,则strlen(s)的值是( )。
A.7
B.8
C.9
D.10
第17题:
若有int x=10;char c='d';则表达式a+c的值的类型是()。
A.char
B.int
C.float
D.byte
第18题:
若有byte b=6;short s=20;则表达式b+s的值的类型是()。
A.byte
B.int
C.short
D.char
第19题:
若有如下定义和声明: struct s { int m;char ch;double x; union t {char a[6];int b[3];}tt;}ss; 则sizeof(struets)的值是( )
A.6
B.14
C.17
D.20
第20题:
若有charc=’8’;shorts=20;则表达式c+s的值的类型是()
第21题:
若有byteb=6;shorts=20;则表达式b+s的值的类型是()
第22题:
如果定义有short,s;byte,b;char,c,则表达式s*b+c的类型为()
第23题:
double
char
int
float