有以下程序fun(int *m,int n){ int i; for(i=0;iA: 1,2,3,4,5,
B: 2,3,4,5,6,
C: 3,4,5,6,7,
D: 2,3,4,5,1,
B: 2,3,4,5,6,
C: 3,4,5,6,7,
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]); } 程序运行后的输出结果是 ______。[/i][/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,
- 有以下程序: prt(int *m, int n) int i; for(i=0;i<n;i++)m[i]++; void main() int a[]=1,2,3,4,5,i; prt(a,5); for(i=0;i<5;i++) printf("%d,",a[i]); 程序运行后输出的结果是( )。[/i][/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,
- 下列代码段执行后的结果是()int[] a = { 1, 3, 5, 2, 4 };int j = 4;for (int i = 0; i <; 5; i++) { a[i] = a[j]; j--;}for (int i = 0; i <; 5; i++) System.out.print(a[i] + " ");[/i][/i] A: 1 2 3 4 5 B: 5 4 3 2 1 C: 4 2 5 2 4 D: 4 2 5 3 1
- 以下程序的输出结果是( )。 void 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]);[/i][/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
- 有以下程序:prt(int *m,int n){ int i;for(i=0;i}main(){int a[]={1,2,3,4,5},i;prt(a,5); for(i=0;i<5;i++) printf("%d,",a[i]);}程序运行后的输出结果是()。[/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,