网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
若有定义: int a[5]={1,2,3,4,5}; char b='c', c; 则下面表达式值为 2 的是_____。
A.a[b-'b']
B.a[2]
C.a[c-b]
D.a[b]
参考答案和解析
a[b-'b']
更多 “若有定义: int a[5]={1,2,3,4,5}; char b='c', c; 则下面表达式值为 2 的是_____。A.a[b-'b']B.a[2]C.a[c-b]D.a[b]” 相关考题
考题
若有下面说明和定义:struct test{ int m1;char m2;float m3;union uu(char u1[5];int u2[2];)ua;}myaa; 则sizeof(struct test)的值是( )。A)20 B)16C)14 D)9
考题
若有定义:int a=4,b=5;float x=3.4,y=2.1;,则下列表达式的值为( )(float) (a+b)/2+(int)×%(int)yA.5.5B.55C.5.500000D.55.00000
考题
若有下面的说明和定义struct test{ int ml; char m2; float m3;union uu {char ul[5]; int u2[2];} ua;} myaa;则sizeof(struct test )的值是A.12B.16C.14D.9
考题
若有以下定义: char a: int b; float c; double d; 则表达式a*b+d c的值的类型为 ______。A.floatB.intC.charD.double
考题
若有以下定义: char a;int b; float c;double d; 则表达式a*b+b-c值的类型为( )。A. floatSX
若有以下定义: char a;int b; float c;double d; 则表达式a*b+b-c值的类型为( )。A. floatB.intC.charD.double
考题
若有定义“int a=5,b=7;”,则表达式a%-(b%2) 运算后,a的值为( )。A.0B.1C.11S
若有定义“int a=5,b=7;”,则表达式a%-(b%2) 运算后,a的值为( )。A.0B.1C.11D.3
考题
若有定义:int a=4, b=5;float x=3.4,y=2.1;,则下列表达式的值为( )。 (float) (a+b)/2+(int)x%(int)yA.5.5B.55C.5.5D.55
考题
若有定义:int a=2,b=3;float x=3.5,y=2.5;则下面表达式的值为______。(float)(a+b)/2+(int)x%(int)yA.3.5B.35C.3.5D.35
考题
若有定义语句:“int x=10;”,则表达式x-=x+x的值为( )。 A.-20B.-l0C.0
若有定义语句:“int x=10;”,则表达式x-=x+x的值为( )。A.-20B.-l0C.0D.10
考题
若有以下定义:char a;int b;float c;double d;则表达式a*b+d-c值的类型为( )。A.A. float SXB
若有以下定义:char a;int b;float c;double d;则表达式a*b+d-c值的类型为( )。A.A. floatB.intC.charD.double
考题
若有下面的说明和定义: struct test { int m1; char m2; float m3; union uu {char ul[5]; int u2[2];} ua; }myaa;则sizeof(struct test)的值是( )。A.12B.16C.14D.9
考题
单选题若有定义:int a,b;则表达式(a=2,b=5,a*2,b++,a+b)的值是()A
7B
8C
9D
10
热门标签
最新试卷