有以下程序 void f(int b[]) { int i; for(i=2;i<6;i++) b[i]*=2; } main() { int a[10]={1,2,3,4,5,6,7,8,9,10),i; f(a); for(i=0;i<10,i++)printf("%d,",a[i]); } 程序运行后的输出结果是A.1,2,3,4,5,6,7,8,9,10,B.1,2,6,8,10,12,7,8,9,10,C.1,2,3,4,10,12,14,16,9,10,D.1,2,6,8,10,12,14,16,9,10,
有以下程序 void f(int b[]) { int i; for(i=2;i<6;i++) b[i]*=2; } main() { int a[10]={1,2,3,4,5,6,7,8,9,10),i; f(a); for(i=0;i<10,i++)printf("%d,",a[i]); } 程序运行后的输出结果是
A.1,2,3,4,5,6,7,8,9,10,
B.1,2,6,8,10,12,7,8,9,10,
C.1,2,3,4,10,12,14,16,9,10,
D.1,2,6,8,10,12,14,16,9,10,
相关考题:
有以下程序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,
若有以下程序:includeint a[]={2,4,6,8};main(){int i; int *p=a; for(i=0;i 若有以下程序: #include<stdio.h> int a[]={2,4,6,8}; main() { int i; int *p=a; for(i=0;i<4;i++) a[i]=*p; printf("%d\n",a[2]); } 上面程序的输出结果是( )。A.6B.8C.4D.2
有以下程序: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
若有以下程序includeint a[]={2,4,6,8};main(){int i;int *p=a;for(i=0;i 若有以下程序 #include<stdio.h> int a[]={2,4,6,8}; main() { int i; int *p=a; for(i=0;i<4;i++)a[i]=*p; printf("%d\n",a[2]);} 上面程序的输出结果是A.6B.8C.4D.2
有以下程序 void fun(int *a,int i,int j) { in t; if(i<j) {t=a[i];a[i]=a[j];a[j]=t; fun(a,++i,--j); } } main() { int a[]={1,2,3,4,5,6},i; fun(a,0,5); for(i=0;i<6;i++) printf("%d",a[i]); } 执行后输出结果是A.6 5 4 3 2 1B.4 3 2 1 5 6C.4 5 6 1 2 3D.1 2 3 4 5 6
若有以下程序includeint a[]={2,4,6,8};main(){int i; int *p=a; for(i=0;i 若有以下程序 #include <stdio.h> int a[]={2,4,6,8}; main() { int i; int *p=a; for(i=0;i<4;i++)a[i]=*p; printf("%d\n",a[2]);} 上面程序输出结果是A.6B.8C.4D.2
有以下程序,程序执行后,输出结果是【】include void fun(int*A) {a[0]=a[1];} main() {i 有以下程序,程序执行后,输出结果是【 】include<stdio.h>void fun(int*A){ a[0]=a[1];}main(){ int a[10]={10,9,8,7,6,5,4,3,2,1,},i;for(i=2;i>1=0;i-) fun(a[i]);for(i=0;i<10;i++) printf("%d,a[i]);printf("\n");}
请读程序: includeint a[]={2,4,6,8};main (){ int i;int * p=a;for(i=0;i 请读程序: # include<stdio.h> int a[]={2,4,6,8}; main ( ) { int i; int * p=a; for(i=0;i<4;i + +)a[i]=* p + +; printf("%d\n”,a[2]); } 上面程序的输出结果是 ( )A.6B.8C.4D.2
请读程序:includeint a[]={2,4,6,8,};main(){int i; int *p=a; for( i=0;i 请读程序: #include <stdio.h> int a[]={2,4,6,8,}; main() { int i; int *p=a; for( i=0;i<4;i++) a[i]=*p++; priatf("%d\n",a[2]); } 上面程序的输出结果是( )。A.6B.8C.4D.2
若有以下程序 include int a[ ]={2,4,6,8}; main( ) { int i; int *p=a; for(i=0;i 若有以下程序#include <stdio.h>int a[ ]={2,4,6,8};main( ){ int i;int *p=a;for(i=0;i<4;i++) a[i]=*p;printf("%d\n",a[2]);}上面程序的输出结果是A.6B.8C.4D.2