main()
{ int i;
int a[3][3]={1,2,3,4,5,6,7,8,9};
for(i=0;i<3;i++)
printf("%d ",a[2-i][i]);
}
A.1 5 9
B.7 5 3
C.3 5 7
D.5 9 1
[单选题]下面程序的输出结果是______。main(){ int a[]={1,2,3,4,5,6,7,8,9,0,},*p; p=a; printf("%d/n",*p+9);}A.0B.1C.10D.9
[单选题]下面程序输出的结果是 main() {int i; int a[3][3]={1,2,3,4,5,6,7,8,9}; for(i=0;i<3;i++) printf("%d",a[2-i][i]);}A.1 5 9B.7 5 3C.3 5 7D.5 9 1
[单选题]以下程序的输出结果是()。main(){int a[3][3]={{1,2},{3,4},{5,6}},i,j,s=0;for(i=1;i<3;i++)for(j=0;j<=i;j++)s+=a[i][j];printf("%d/n",s);}A . 18B . 19C . 20D . 21
[单选题]下面程序的输出结果是main(){ int a[10]={1,2,3,4,5,6,7,8,9,10},*p=a;printf("%d/n",*(p+2));}A.3B.4C.1D.2
[单选题]下面程序的输出结果是 main() {inta[10]={1,2,3,4,5,6,7,8,9,10},*p=a; printf("%d/n",*(p+2));}A.3B.4C.1D.2
[单选题]以下程序的输出结果是main(){inta[4][4]={{1,3,5},{2,4,6},{3,5,7}};printf(";";%d%d%d%d/n";";,a[0][3],a[1][2],a[2][1],a[3][0];}A . 6B . 6789C . ’6’D . 789
[单选题]下面程序输出的结果是 include void main( ) { inti; int a[3] [3] ={1,2,3,4,5,6,下面程序输出的结果是#include<iostream.h>void main( ){ inti;int a[3] [3] ={1,2,3,4,5,6,7,8,91;for(i=0;i<3;i++)cout < < a[2-i] [i] < < " ";}A.1 5 9B.7 5 3C.3 5 7D.5 9 1
[单选题]下面程序输出的结果是()includevoid main(){inti:int a[3][3]={1,2,3,4,5,6,7,8,9}下面程序输出的结果是( ) #include<iostreas.h> void main() {inti: int a[3] [3]={1,2,3,4,5,6,7,8,9}; for(i=0;i<3;i++= cout<<a [i] [i]<<" ";}A.1 5 9B.7 5 3C.3 5 7D.5 9 1
[单选题]下面程序输出的结果是 main() { int int a[3)[3]={1,2,3,4,5,6,7,8,9}; for(i=0;i<3;i++) printf("%d",a[2-i][i]);}A.1 5 9B.7 5 3C.3 5 7D.5 9 1
[单选题]下面程序的输出结果是______。 main() { int a[]={1,2,3,4,5,6,7,8,9,0},*p; p=a; printf("%d/n",*(p+9)); }A.0B.1C.10D.9