试题题干
设int a[2][3]={1,2,3,4,5};,数组元素a[1][1]的值是()
参考答案
正确答案:
试题解析
a[2][3]是一个2行3列的数组,根据初始化,相应的元素值为:a[0][0]的值为1,a[0][1]的值为2,a[0][2]的值为3,a[1][0]的值为4,a[1][1]的值为5,其余元素值均为0。
设int a[2][3]={1,2,3,4,5};,数组元素a[1][1]的值是()
a[2][3]是一个2行3列的数组,根据初始化,相应的元素值为:a[0][0]的值为1,a[0][1]的值为2,a[0][2]的值为3,a[1][0]的值为4,a[1][1]的值为5,其余元素值均为0。