题目内容

以下程序的运行结果是 。#include main(){int a[3][3]={1,2,3,4,5,6,7,8,9},i,s=0;for (i=0;i<=2;i++)s=s+a[i][i];printf("s=%d\n",s);}

查看答案
更多问题

以下程序的运行结果是 。#include void main(){int a[3][3]={1,2,3,4,5,6,7,8,9},i,s=1;for (i=0;i<=2;i++)s=s*a[i][i];printf("s=%d\n",s);}

以下程序的运行结果是 。#include void main(){int a[]={0,2,5,8,12,15,23,35,60,65};int x=15,i,n=10,m;i=n/2+1; m=n/2;while (m!=0){if (xa[i]){i=i+m/2+1;m=m/2;}else break;}printf("place=%d",i+1);}

以下程序的运行结果是 。#include void main(){int i,j,row=0,col=0,m;static int a[3][3]={1,-2,0,4,-5,6,2,4};m=a[0][0];for (i=0;i<3;i++)for (j=0;j<3;j++)if (a[i][j]

以下程序的运行结果是 。#include void main(){int a[4][5]={1,2,4,-4,5,-9,3,6,-3,2,7,8,4};int i,j,n;n=9;i=n/5; j=n-i*5-1;printf("第%d个元素(%d,%d)值是%d\n",n,i,j,a[i][j]);}

答案查题题库