网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
若有定义int a[]=new int[2][3];则数组第1个下标的可用范围是()
A、1到2
B、0到2
C、1
D、0到1
参考答案
更多 “ 若有定义int a[]=new int[2][3];则数组第1个下标的可用范围是()A、1到2B、0到2C、1D、0到1 ” 相关考题
考题
下列数组定义及赋值,错误的是( )。A.int a[]={1,2,3,4,5};B.int intArray[];C.int Array=new int[3]; int Array[1]=1; int Array[2]=2; int Array[3]=3;D.int a[][]=new int[2][]; a[0]=new int[3]; a[1]=new int[3];
考题
若有下列定义和语句,则对a数组元素的非法引用是()。Int a[2][3],(*pt)[3];pt=a;
A. pt[0][0]B. *(pt+1)[2]C. *(pt[1]+2)D. *(a[0]+2
考题
设有数组的定义int[] a = new int[3],则下面对数组元素的引用错误的是( )。
A.a[0];B.a[A.length-1];C.a[3];D.int i=1; a[i];
考题
若有以下定义和语句,则对w数组元素非法引用的是______。 int w[2][3],(*pw)[3];pw=w;A.w[0]+2B.*(pw+1)[2]C.pw[0][0]D.*(pw[1]+2)
考题
以下数组定义中不正确的是 ______。A.int a[2][3]B.int b[][3]={0};C.int c[1][1]={0};D.int d[3][]={{1,2},(1,2,3}{1,2,3,4}};
考题
若有定义和语句: int w[2][3],(* pw)[3];pw=w; 则对w数组元素的非法引用是 ( )A.* (w [0] +2)B.* (pw+1)[2]C.pw[0][0]D.* (pw [1]+2)
考题
若有下列定义,则对a数组元素地址的正确引用是( )。int a[5],*p=a;A.p+5 B.*a+1
若有下列定义,则对a数组元素地址的正确引用是( )。int a[5],*p=a;A.p+5B.*a+1C.&a+1D.&a[0]
考题
以下数组定义中不正确的是().A、int a[2][3];B、int b[][3]={0,1,2,3};C、int c[100][100]={0};D、int d[3][]={{1,2},{1,2,3},{1,2,3,4}};
考题
单选题若有定义inta[]=newint[2][3]则第1个下标的可用范围是()A
1到2B
0到2C
1D
0到1
热门标签
最新试卷