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

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

若有定义int a[4]={1,2,3},则a[0]的值是()。

A.1

B.2

C.3

D.0


参考答案和解析
true
更多 “若有定义int a[4]={1,2,3},则a[0]的值是()。A.1B.2C.3D.0” 相关考题
考题 以下错误的定义语句是A)int x[][3]={{0},{1},{1,2,3}};B)int x[4][3]={{1,2,3},{1,2,3},{1,2,3},{1,2,3}};C)int x[4][]={{1,2,3},{1,2,3},{1,2,3},{1,2,3}};D)int x[][3]={1,2,3,4};

考题 若有定义语句: int a=5; ,则表达式: a++ 的值是 【 6 】 。

考题 下列错误的定义语句是( )。A.int x[ ][3]={{0},{1},{1,2,3}};B.int x[4][3]={{1,2,3},{1,2,3},{1,2,3},{1,2,3}};C.int x[4][ ]={{1,2,3},{1,2,3},{1,2,3},{1,2,3}};D.int x[ ][3]={1,2,3,4};

考题 若有定义语句int b=2;,则表达式(b 若有定义语句int b=2;,则表达式(bA.4B.8C.0D.2

考题 若有定义int a[9],+P=a;,则P+5表示( )。A.数组元素a[5]的值B.数组元素a[5]的地址SXB 若有定义int a[9],+P=a;,则P+5表示( )。A.数组元素a[5]的值B.数组元素a[5]的地址C.数组元素a[6]的地址D.数组元素a[0]的值加上5

考题 若有定义:int a[3][4],则正确引用数组 a 元素的是( ) 。 A. a[2][4]B. a[3][3]C. a[0][0]D. a[3][4]

考题 若有定义int a=2;则执行完语句a+=a-=a*a;后,a的值是( )。A.0B.4C.8D.-4

考题 若有以下程序:include using namespace std;int main(){ int a[4] [4] = {{1,2,3,-4} 若有以下程序: #include <iostream> using namespace std; int main() { int a[4] [4] = {{1,2,3,-4},{0,-12,-13,14}, {-21,23,0,-24},{-31,32,-33,0}}; int i,j,s = 0; for(i=0;i<4;i++) { for(j=O;j<4;j++) { if(a[i] [j] >=0) continue; s+=a [i] [j]; } } cout<<s<<end1; return 0; } 执行后的输出结果是( )。A.-138B.141C.75D.-1

考题 若有定义: int a=7;float x=2.5,y=4.7;则表达式x+a%3,(int)(x+y)%2/4的值是( )。A.2.5B.2.75C.3.5D.0

考题 下列说法正确的是( )。A.定义int a[4]={1,3};,则a[0]=1,a[1]=3,a[3]的值不确定B.定义static int a[4];,则元素值不确定C.const int x;x=5;表示给常量x赋初值D.定义int a[4];,则其元素的值是不确定的

考题 若有定义intx=3,y=2和floata=2.5,b=3.5,则表达式:(x+y)%2+(int)a/(int)b的值是()。A.0B.2C.1.5D.1

考题 若有定义语句int b=2;,则表达式(b2)/(3||b)的值是( )。A.4B.8C.0D.2

考题 若有如下定义: int x=6,y=3,z=2; 则表达式x=y||y<zz==z的值是( )。A.0B.1C.4D.6

考题 若有定义语句:int x=10;,则表沃式㈣的值为( )。A.一10B.-20C.0D.10

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

考题 若有定义:int x=3,y=4;则表达式!x||y的值为() A.1B.0C.3D.4

考题 若有定义int a=2;则执行完语句a/=a*a;后,a的值是 ( )A.0.5B.0C.1/2D.1/4

考题 若有定义语句:“int x=10;”,则表达式x-=x+x的值为( )。 A.-20B.-l0C.0 若有定义语句:“int x=10;”,则表达式x-=x+x的值为( )。A.-20B.-l0C.0D.10

考题 若有定义语句:int m[][3]={1,2,3,4,5,6,7};,则与该语句等价的是A.int m[][3j={{1,2,3},{4,5,6},{i 7}};B.int m[][3]={{1,2},{3,4},{5,6,7}};C.int m[][3]={{1,2,3},{4,5},{6,7}};D.int nl[][3]={{1},{2,3,4},{5,6,7}};

考题 若有定义:int a[ ]={2,4,6,8,10,12},*p=a; ;则*(p+1)的值是()

考题 若有定义:int x=3,y=4;则表达式!x||y的值为()A、1B、0C、3D、4

考题 若有定义:inta[3][4]={{1,2},{0},{1,2,3}};则a[1][1]的值为()A、0B、{1,2}C、1D、3

考题 若有定义:int a[3][4]={{1,2},{0},{4,6,8,10}};则初始化后,a[1][2]的值为(),a[2][1]得到的值为()。

考题 单选题若有定义:inta[3][4]={{1,2},{0},{1,2,3}};则a[1][1]的值为()A 0B {1,2}C 1D 3

考题 单选题若有定义语句 int b=2; 则表达式(b2)/(3‖b)的值是(  )。A 8B 2C 4D 0

考题 填空题若有定义:int a[ ]={2,4,6,8,10,12},*p=a; ;则*(p+1)的值是()

考题 单选题若有定义:int x=3,y=4;则表达式!x||y的值为()A 1B 0C 3D 4