Static int a[3][3]={{1,2,3}{4,5,6}{7,8,9}};那么a[1][2]的值为?怎样判断?如果是 a[2][3]呢?
人气:177 ℃ 时间:2019-11-01 07:13:35
解答
a[1][2]值为6不存在a[2][3],因为定义Static int a[3][3]下标范围是a[0][0]到a[2][2].按你的初始值对应的是:a[0][0]=1;a[0][1]=2;a[0][2]=3;a[1][0]=4;a[1][1]=5;a[1][2]=6;a[2][0]=7;a[2][1]=8;a[2][2]=9;...
推荐
- 设定义了说明语句:static int a[2][4]={1,2,3,4,5,6,7,8},(*p)[4]=a+1;则p[0][0]的值为_____.
- 设有说明”static int a [3][3]={{1},{4,5},{7,8,9}},*p=a[2];”,则*(p-2)的值为_
- A)static int a[ ][ ]={{0,1,5},{2,4,7},{1,6,8}}; B)static float a[3][ ]={{0
- 连词成句:was a there car when accident came I school out the of
- 已知Y=Y1-Y2,Y1与X的平方成正比例 Y2与X分之1成正比例
- the student will give us a talk ...how to use our spare time A for B on C in
- 已知x满足不等式-3≤㏒(½) x≤ -½ ,求函数f(x)=㏒₂(x/4) · ㏒₂(x/8) 的最值
- 一个数除以6余4,除以7余3,除以8余4,除以9余7这个数最小是多少
猜你喜欢