以下程序的输出结果是【】。include<stdio.h> main () int a[3][3] ={{1 2 9} {3 4 8} {5 6 7} }

计算机 程序,正确答案 已帮助 人

以下程序的输出结果是【 】。

include <stdio.h>

main ()

int a[3][3] ={{1,2,9},{3,4,8},{5,6,7} } ,i,s=0;

for(i=0;i<3;i++) s+ =a[i][i] + a[i][3-i-1];

pfintf("% d " ,s);

请帮忙给出正确答案和分析,谢谢!

热搜:下面程序的功能是输出数组s中最大元素