A)static int a[ ][ ]={{0,1,5},{2,4,7},{1,6,8}}; B)static float a[3][ ]={{0A)static int a[ ][ ]={{0,1,5},{2,4,7},{1,6,8}}; B)static float a[3][ ]={{0,1,5},{2,4,7},{1,6,8}}; C) static int a[ ][3]={0,1,5,2,4,7,1,6}; D)static float a[3][3]={(0,1,5),(2,4,
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 04:45:01
A)static int a[ ][ ]={{0,1,5},{2,4,7},{1,6,8}}; B)static float a[3][ ]={{0A)static int a[ ][ ]={{0,1,5},{2,4,7},{1,6,8}}; B)static float a[3][ ]={{0,1,5},{2,4,7},{1,6,8}}; C) static int a[ ][3]={0,1,5,2,4,7,1,6}; D)static float a[3][3]={(0,1,5),(2,4,
A)static int a[ ][ ]={{0,1,5},{2,4,7},{1,6,8}}; B)static float a[3][ ]={{0
A)static int a[ ][ ]={{0,1,5},{2,4,7},{1,6,8}};
B)static float a[3][ ]={{0,1,5},{2,4,7},{1,6,8}};
C) static int a[ ][3]={0,1,5,2,4,7,1,6};
D)static float a[3][3]={(0,1,5),(2,4,7),(1,6)};
哪个对?
急用啊
A)static int a[ ][ ]={{0,1,5},{2,4,7},{1,6,8}}; B)static float a[3][ ]={{0A)static int a[ ][ ]={{0,1,5},{2,4,7},{1,6,8}}; B)static float a[3][ ]={{0,1,5},{2,4,7},{1,6,8}}; C) static int a[ ][3]={0,1,5,2,4,7,1,6}; D)static float a[3][3]={(0,1,5),(2,4,
题面的本意可能是说只有C)是正确的.因为A)、B)语法错误([]不能都空着,也不能是后一个空着;无论是多少维,只有最前面的一个[]可以空着,不然编译器就算不出来了),不用考虑.对于D),其实也是允许的,因为用()括起来的三个数和构成逗号表达式,它等效于static float a[3][3]={5,7,6};,这只对a[0][0]、a[0][1]、a[0][2]做了初始化.