有以下程序: main() { int m[][3]={1, 4, 7, 2, 5, 8, 3, 6, 9); int i, j, k=2; for(i=0; i<3; i++) { printf("% d", m[k][i]); } } 执行后输出结果是______。A.456B.258C.369D.789

有以下程序: main() { int m[][3]={1, 4, 7, 2, 5, 8, 3, 6, 9); int i, j, k=2; for(i=0; i<3; i++) { printf("% d", m[k][i]); } } 执行后输出结果是______。

A.456

B.258

C.369

D.789


相关考题:

有以下程序#include stdio.hvoid fun(int *a,int n)/*fun 函数的功能是将 a 所指数组元素从大到小排序 */{ int t,i,j;for(i=0;in-1;i++)for(j=i+1;jn;j++)if (a[i]a[j]) {t=a[i];a[i]=a[j];a[j]=t;}}main(){ int c[10]={1,2,3,4,5,6,7,8,9,0},i;fun(c+4,6);for (i=0;i10;i++) printf("%d,",c[i]);printf("\n");}程序运行的结果是A ) 1,2,3,4,5,6,7,8,9,0,B)0,9,8,7,6,5,1,2,3,4,C) 0,9,8,7,6,5,4,3,2,1,D)1,2,3,4,9,8,7,6,5,0,

有以下程序 main() { int a[4][4]={{1,4,3,2},{8,6,5,7},{3,7,2,5},{4,8,6,1}},i,j,k,t; for(i=0;<4:i++) for(j=0;j<3;j++) for(k=j+1;k<4;k++) if(a[j][i]>a[k][i]{t=a[j][i];a[j][i]=a[k][i]=a[k][i]=t;}/*按列排序*/ for(i=0;i<4;i++)printf("%d,",a[i][i]); } 程序运行后的输出结果是A.1,6,5,7,B.8,7,3,1,C.4,7,5,2,D.1,6,2,1,

有以下程序#include stdio.hvoid fun(int *a,int n)/*fun函数的功能是将a所指数组元素从大到小排序*/{ int t,i,j;for(i=0;in-1;j++)for(j=i+1;jn;j++)if(a[i]a[j]) { t=a[i];a[i]=a[j];a[j]=t;}}main(){ int c[10]={1,2,3,4,5,6,7,8,9,0},i;fun(c+4,6);for(i=0;i10;i++) printf("%d,",c[i]);printf("\n");}程序的运行结果是A.1,2,3,4,5,6,7,8,9,0,B.0,9,8,7,6,5,1,2,3,4,C.0,9,8,7,6,5,4,3,2,1,D.1,2,3,4,9,8,7,6,5,0,

有以下程序 include void fun(int *a, int n)/* fun 函数的功能是将a所指数 有以下程序 #include <stdio.h> void fun(int *a, int n)/* fun 函数的功能是将a所指数组元素从大到小排序*/ { int t, i,j; for (i=0; i<n-1 ;i++) for 0=i+l; j<n; j++) if(a[i]<a[j]) { t=a[i]; a[i]=a[j]; a[j]=t; } } main() { int c[10]= { 1,2,3,4,5,6,7,8,9,0},i; fun(c+4, 6); for (i=0;i<10; i++) printf("%d,", c[i]); printf("\n"); }A.1,2,3,4,5,6,7,8,9,0,B.0,9,8,7,6,5,1,2,3,4,C.0,9,8,7,6,5,4,3,2,1,D.1,2,3,4,9,8,7,6,5,0,

有以下程序 #includestdio.h void fun(int*a,int n)/*fun函数的功能是将a所指数组元素从大到小排序*/ {int t,i,j; for(i=0;in-1;j++) for(j=i+l;jn;j++) if(a[i]a[j]){t=a[i];a[i]=a[j];a[j]=t;} } main {int c[10]={1,2,3,4,5,6,7,8,9,0),i; fun(c+4,6); for(i=0;i10;i++)printf("%d,",c[i]); printf("\n"); } 程序运行的结果是( )。A.1,2,3,4,5,6,7,8,9,0,B.0,9,8,7,6,5,1,2,3,4,C.0,9,8,7,6,5,4,3,2,1,D.1,2,3,4,9,8,7,6,5,0,

有以下程序: #define N 20 fun(int a[],int,n,int m) { int,i,j; for(i=m;i>=n;i-)a[i+1]=a[i] } main() { int i, a[N]={1,2,3,4,5,6,7,8,9,10}; fun(a,2,9); for(i=0;i<5;i++)printf("%d",a[i]); } 程序运行后的输出结果是 ______。A.10234B.12344C.12334D.12234

有以下程序 main() {int a[4][4]={{1,4,3,2},{8,6,5,7},{3,7,2,5},{4,8,6,1}},i,j,k,t; for(i=0;i<4;i++) for(j=0;j<3;j++) for(k=j+1;k<4;k++) if(a[j][i]>a[k][i]){t=a[j][i];a[j][i]=a[k][i];a[k][i]=t;}/*按列排序*/ for(i=0;i<4;i++)printf("%d,",a[i][i]);A.1,6,5,7,B.8,7,3,1,C.4,7,5,2,D.1,6,2,1,

有以下程序: main() {int a[4][4]={{1,4,3,2,},{8,6,5,7,},{3,7,2,5,},{4,8,6,1,)},i,j,k,t; for(i=0;i<4;i++) for(j=0;j<3;j++) for(k=j+1;k<4;k++) if(a[j][i]>a[k][i]){t=a[j][i];a[j][i]=a[k][i];a[k][i]=t;}/*按列排序*/ for(i=0;i4;i++)printf("%d,",a[i][i]); } 程序运行后的输出结果是( )。A.1,6,5,7,B.8,7,3,1,C.4,7,5,2,D.1,6,2,1,

有以下程序 include void fun(int *a,int n)/*fun函数的功能是将a所指数组元素从大到 有以下程序#include <stdio.h>void fun(int *a,int n)/*fun函数的功能是将a所指数组元素从大到小排序*/{ int t,i,j;for(i=0;i<n-1;j++)for(j=i+1;j<n;j++)if(a[i]<a[j]) { t=a[i];a[i]=a[j];a[j]=t;}}main( ){ int c[10]={1,2,3,4,5,6,7,8,9,0},i;fun(c+4,6);for(i=0;i<10;i++) printf("%d,",c[i]);printf("\n");}程序的运行结果是A.1,2,3,4,5,6,7,8,9,0,B.0,9,8,7,6,5,1,2,3,4,C.0,9,8,7,6,5,4,3,2,1,D.1,2,3,4,9,8,7,6,5,0,

有以下程序#includestdio.hvoid fun(int *a,int n)/*fun函数功能是将a所指的数组元素从大到小排序*/{int t,i,j;for(i=0;in-1;i++)for(j=i+1;jn;j++)if(aa[j]) { t=a;a=a[j];a[j]=t; }}main(){int c[10]={1,2,3,4,5,6,7,8,9,0},i;fun(c+4,6);for(i=0;i10;i++) printf(“%d,”,C.;printf(“\n”);}程序的运行结果是( )。A.1,2,3,4,5,6,7,8,9,0B.0,9,8,7,6,5,1,2,3,4C.0,9,8,7,6,5,4,3,2,1D.1,2,3,4,9,8,7,6,5,0