下列程序的运行结果是______。main(){int a[6],i; for(i=2;i3))%5; print 下列程序的运行结果是______。 main() { int a[6],i; for(i=2;i<6;i++) {a[i]=4*(i-2*(i>3))%5; printf("%2d",a[i]); } }A.2 3 2 3B.1 2 1 2C.3 2 3 2D.2 2 2 2

下列程序的运行结果是______。main(){int a[6],i; for(i=2;i<6;i++){a[i]=4*(i-2*(i>3))%5; print

下列程序的运行结果是______。 main() { int a[6],i; for(i=2;i<6;i++) {a[i]=4*(i-2*(i>3))%5; printf("%2d",a[i]); } }

A.2 3 2 3

B.1 2 1 2

C.3 2 3 2

D.2 2 2 2


相关考题:

有以下程序void f(int *q){ int i=0;for( ; i5;i++)(*q)++;}main( ){ int a[5]={1,2,3,4,5},i;f(a);for(i=0;i5;i++)printf("%d,",a[i]);}程序运行后的输出结果是A)2,2,3,4,5,B)6,2,3,4,5,C)1,2,3,4,5,D) 2,3,4,5,6,

有以下程序: void f(int*q) {int i=0; for(;i<5;i++)(*q)++; } main() {int a[5]={1,2,3,4,5},i; f(A); for(i=0;i<5;i++)printf("%d,",a[i]); } 程序运行后的输出结果是( )。A.2,2,3,4,5,B.6,2,3,4,5,C.1,2,3,4,5,D.2,3,4,5,6,

有以下程序 prt(int *m,int n) {int i; for(i=0;i<n;i++)m[i]++; } main() { int a[]={1,2,3,4,5},i; prt(a,5); for(i=0;i<5;i++) printf("%d,",a[i]); } 程序运行后的输出结果是A.1,2,3,4,5,B.2,3,4,5,6,C.3,4,5,6,7,D.2,3,4,5,1,

有以下程序:include prt(int * m,int n)int i;for(i =0;i 有以下程序:#include <stdio.h>prt(int * m,int n) int i; for(i =0;i<n;i ++ ) m[i] ++;main( )} int a[ ] = { 1,2,3,4,5} ,i; prt(a,5); for(i =0;i<5;i ++ ) printf( "% d," ,a[i] );}程序运行后的输出结果是( )。A.1,2,3,4,5,B.2,3,4,5,6,C.3,4,5,6,7,D.2,3,4,5,1

下列程序的执行结果是______。 print(int*b,int m) { int i; for(i=0;i<m;i++) {*b=i; b++; } printf("%d\n",*--B) ; } main() { int a[5]=}1,2,3,4,5}; print(a,5);}A.5B.4C.3D.2

有以下程序: prt(int*m,int n) { int i; for(i=0;i<n;i++)m[i])++; } main() { int a[]={1,2,3,4,5},i; prt(a,5); for(i=0;i<5;i++) printf("%d,",a[i]); } 程序运行后的输出结果是 ______。A.1,2,3,4,5,B.2,3,4,5,6,C.3,4,5,6,7,D.2,3,4,5,1,

有以下程序void f(int *q){ int i=0;for(;i5;i++) (*q)++;}main( ){ int a[5]={1,2,3,4,5},i;f(a);for(i=0;i<5;i++) printf("%d,",a[i]);}程序运行后的输出结果是A.2,2,3,4,5,B.6,2,3,4,5,C.1,2,3,4,5,D.2,3,4,5,6,

有以下程序prt(int *m,int n){ int i; for(i=0;in;i++) m[i]++;}main(){ int a[]={1,2,3,4,5},i; prt(a,5); for(i=0;i5;i++) printf("%d,",a[i]);}程序运行后的输出结果是A.1,2,3,4,5, B.3,4,5,6,7,C.2,3,4,5,6, D.2,3,4,5,1,

有以下程序prt (int *m, int n){ int i; for (i=0; i<n; i++) m [i]++;}main (){ int a[]={1,2,3,4,5},i; prt{a, 5); for [i=0;i<5;i++) printf ("%d ",a[i]);} 程序运行后输出结果是A.1,2,3,4,5,B.2,3,4,5,6,C.3,4,5,6,7,D.2,3,4,5,1