网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

若已有下列定义,则值为4的表达式是______。 int []a = {1,2,3,4,5,6,7,8,9,10}; char c = ‘a’, d, g;

A.a[‘d’ – ‘c’]

B.a[g -c]

C.a[‘d’ -c]

D.a[4]


参考答案和解析
p[1][1]
更多 “若已有下列定义,则值为4的表达式是______。 int []a = {1,2,3,4,5,6,7,8,9,10}; char c = ‘a’, d, g;A.a[‘d’ – ‘c’]B.a[g -c]C.a[‘d’ -c]D.a[4]” 相关考题
考题 已有定义 : char c=' ';int a=1,b;( 此处 c 的初值为空格字符 ) , 执行 b=!ca; 后 b 的值为 【 6 】 。

考题 若有以下定义:char a;int b;float c; double d;则表达式a*b+d-c值的类型为【12】 。

考题 已有定义:float x=5.5;则表达式:x=(int)x+2的值为。

考题 若定义int a=10,则表达式a+=a-=a*=a的值是( )。A.0B.-180C.-100D.-90

考题 若有定义: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

考题 已有定义:char c=′ ′;int a=1,b;(此处c的初值为空格字符),执行b=!ca;后b的值为【 】。

考题 若已有定义int x=2; int *p=则*p的值为( )A. 2B. &xC. *xD. &p

考题 若有以下定义: char a: int b; float c; double d; 则表达式a*b+d c的值的类型为 ______。A.floatB.intC.charD.double

考题 若有以下定义和语句: int a[]={1,2,3,4,5,6,7,8,9,10},*p=a; 则值为3的表达式是______。A.p+=2,*(p++)B.p+=2,*++pC.p+=3,*p++D.p+=2,++*p

考题 若有以下定义char a;int b;float c;double d;则表达式a*b+d-c值的类型为

考题 现有定义int a;double b;float c;char k;,则表达式a/b+c-k值的类型为A.intB.doubleC.floatD.char

考题 已有定义:int x=3,y=4,z=5,则表达式!(x+y)+z-1y+x/2的值是A.6B.0C.2D.1

考题 若有以下定义: 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 x=3,y=4,z=5;则值为0 的表达式是() A.B.C.D.

考题 有如下说明: int a[10]={1,2,3,4,5,6,7,8,9,10},* P=a; 则数值为9的表达式是( )。 A.*P+9SXB 有如下说明: int a[10]={1,2,3,4,5,6,7,8,9,10},* P=a; 则数值为9的表达式是( )。A.*P+9B.木(P+8)C.*P+=9D.P+8

考题 若有下列说明: int a[12]={1,2,3,4,5,6,7,8,9,10,11,12}; char c='a',d,g; 则数值为4的表达式是 ______。A.a[g-c]B.a[4]C.a['d'-'c']D.a['d'-c]

考题 若有以下定义: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

考题 若有以下的定义, int a[ ]={1,2,3,4,5,6,7,8,9,10},*p=a;则值为3的表达式是 ______。A.p+=2,*(p++)B.p+=2,*++pC.p+=3,*p++D.p+=2,++*p

考题 已有定义:int x=3,y=4,z=5;,则表达式!(x+y)+z-1 y+z/2的值是A.6B.0C.2D.1

考题 若有以下定义:int a[12]={1,2,3,4,5,6,7,8,9,10,11,12};char c='a', d, g;则下列表达式中,结果为4的是( )。A.a[g-c]B.a [4]C.a['d'-'c']D.a['d'-c]

考题 若有以下定义:char a; int b; float c; double d; 则表达式a*b+d-c值的类型为______。A.floatB.intC.charD.double

考题 整型变量a,b的值定义如下:int a=3;int b=4;则表达式 ++a==b的值为: A.4B.falseC.3D.true

考题 若a是int型变量,则表达式(a=2*3,a*2),a+4的值为______。

考题 若有以下定义      int a〔 〕={1,2,3,4,5,6,7,8,9,10),*p=a;    则值为3的表达式是()   A、p+=2,*(p++)B、p+=2,*++pC、p+=3,*p++D、p+=2,++*P

考题 若有定义语句:inta[10]={1,2,3,4,5,6,7,8,9,10};charc=“a”;则值为4的合法表达式是()A、a[4]B、a[’d’-’c’]C、a[’d’-c]D、a[100.0-c]

考题 若a为int型变量,则表达式(a=4*5,a*2),a+6的值为()。

考题 设a是char型变量,其值字符为’1’,则把其值变成整数1的表达式是()。A、(int)aB、int(a)C、a=a-48D、a/(int)a

考题 单选题若有以下定义      int a〔 〕={1,2,3,4,5,6,7,8,9,10),*p=a;    则值为3的表达式是()A p+=2,*(p++)B p+=2,*++pC p+=3,*p++D p+=2,++*P