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

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

若有定义:inta[5]={1,2,3,4,5};charb=’c’,c;,则下面表达式中数值为2的是()

  • A、a[2]
  • B、a[c-b]
  • C、a[b]
  • D、a[b-’b’]

参考答案

更多 “若有定义:inta[5]={1,2,3,4,5};charb=’c’,c;,则下面表达式中数值为2的是()A、a[2]B、a[c-b]C、a[b]D、a[b-’b’]” 相关考题
考题 若有定义语句:inta=3,b=2,c=1;,则表达式b<b?a:b的值是______。

考题 若有以下定义: inta[]={1,2,3,4,5,6,7}; char cl=’b’,c2=‘2’; 则数值不为2的表达式是( )。A.a[1]B.’d’-c1C.a[‘3’-c2]D.c2-0

考题 若有定义inta=1,b=2;则表达式(a++)+(++b)的值是() A、3B、4C、5D、6

考题 若有定义inta=12,n=5,则表达式a%=(n%2)运算后,a的值()。A.0B.1C.12D.6

考题 若有以下定义: inta[]={1,2,3,4,5,6,7}; charc1=b,c2=2; 则数值不为2的表达式是( )。A.a[1]B.dc1C.a[3-c2]D.c2-0

考题 若有定义:“inta=4,b=5;floatx=3.4,y=2.1;”,则下列表达式的值为( )。 A.5.5B.55 若有定义:“inta=4,b=5;floatx=3.4,y=2.1;”,则下列表达式的值为( )。A.5.5B.55C.5.500000D.55.00000

考题 若有定义:inta=5,b=7,c;则执行语句c=a后c的值为()。 A.12B.2C.6D.5

考题 若有定义inta[][3]={1,2,3,4,5,6,7,8,9};则表达式sizeof()/sizeof(a[0])的值为() A.3B.4C.5D.9

考题 以下数组定义中,正确的是() 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}

考题 若有定义:inta[3][3];则表达式&a[2][1]-a的值为() A.7B.8C.6D.9

考题 若有定义:inta[5]={1,2,3,4,5};则语句a[1]=a[2]+a[2+2]-a[3-1];运行后a[1]的值为() A.6B.5C.1D.2

考题 若有定义:inta=2;则正确的赋值表达式是() A.a-=(a*3)B.double(-1)C.a*3D.a*4=3

考题 若有定义“inta=5,b=7;”,则表达式a%=(b%2)运算后,a的值为( )。A.0B.1C.11SX 若有定义“inta=5,b=7;”,则表达式a%=(b%2)运算后,a的值为( )。A.0B.1C.11D.3

考题 若有定义:inta;,则表达式()不能用来判断a值为奇数是“真”,偶数是“假”。A.a%2==1B.!(a%2)C.a%2D.!(a%2==0)

考题 若有定义:inta[3][3];则表达式a[2][1]-a的值为()A、7B、8C、6D、9

考题 若有定义:inta[5]={1,2,3,4,5};则语句a[1]=a[2]+a[2+2]-a[3-1];运行后a[1]的值为()A、6B、5C、1D、2

考题 以下数组定义中,正确的是()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}

考题 若有定义inta[][3]={1,2,3,4,5,6,7,8,9};则表达式sizeof()/sizeof(a[0])的值为()A、3B、4C、5D、9

考题 下列合法的数组定义是:()A、inta[]=”string”;B、inta[5]={0,1,2,3,4,5};C、inta[5]={1,2,3,4,5};D、inta[5]={1};

考题 若有以下定义:inta[5]={1,2,3,4,5};则a[2]=()

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

考题 若有以下说明,inta[12]={1,2,3,4,5,6,7,8,9,10,11,12};charc=’a’,d,g;则数值为4的表达式是()。A、a[g-c]B、a[4]C、a[‘d’-‘c’]D、a[‘d’-c]

考题 若有以下定义,inta[]={1,2,3,4,5},*p=a,i;且0=i5,则对数组元素地址的正确表示是()。A、(a+i)B、a++C、pD、p[i]

考题 若有定义:inta=2;则正确的赋值表达式是()A、a-=(a*3)B、double(-1)C、a*3D、a*4=3

考题 单选题若有定义inta[][3]={1,2,3,4,5,6,7,8,9};则表达式sizeof()/sizeof(a[0])的值为()A 3B 4C 5D 9

考题 单选题若有定义:inta[5]={1,2,3,4,5};则语句a[1]=a[2]+a[2+2]-a[3-1];运行后a[1]的值为()A 6B 5C 1D 2

考题 单选题若有定义:inta[3][3];则表达式a[2][1]-a的值为()A 7B 8C 6D 9