设定义了说明语句:static int a[2][4]={1,2,3,4,5,6,7,8},(*p)[4]=a+1;则p[0][0]的值为_____.
A.1 B.2 C.5 D.6
人气:371 ℃ 时间:2019-10-17 05:04:55
解答
选C,首先二维数组a[][]包含两个一维数组a[0],a[1]
每一个数组又有4个元素
(*p)[4]是一个指针数组,其中*p指向一个一维数组
当令(*p)[4]=a+1时,也就是让p指向a[1],而p[0][0]是指针p所指数组的第一个元素,所以p[0][0]就等价于a[1][0],即为5
推荐
- 设有说明”static int a [3][3]={{1},{4,5},{7,8,9}},*p=a[2];”,则*(p-2)的值为_
- 根茎叶有什么发育而来
- The rapid development of communications technology is transforming the ____ in which people communicate across time and
- 木炭燃烧时有多高温度
- 77+123+456+456= 等于多少啊
- My friend has returned from the UK,She ___at Oxford for four years ,during which we communicated …
- 5x-2y=1 x=7-3x
- 货车和客车同时从相距805千米的两地相向而行,7小时候后两车相遇客车比货车快15米
猜你喜欢