定义如下变量和数组:int k, a[3][3]={1,2,3,4,5,6,7,8,9};则下面语句的输出结果是()。for(k=0;k3;k++)printf(%d,a[k][k]);
7 查阅
定义如下变量和数组:int k, a[3][3]={1,2,3,4,5,6,7,8,9};则下面语句的输出结果是()。for(k=0;k3;k++)printf(%d,a[k][k]);
A.3 5 7
B.3 6 9
C.1 5 9
D.1 4 7
参考答案: