有下列程序: #includestdi0.h intb=2; intfun(int*k) {b=*k+b;return(b);) voidmain( ) {inta[10]={1,2,3,4,5,6,7,8},i; for(i=2;i4;i++){b=fun(&a[i])+b;printf ("%d",b);} printf("\n"); } 程序运行后的输出结果是( )。A.1012B.810C.1028D.1016

有下列程序: #include<stdi0.h> intb=2; intfun(int*k) {b=*k+b;return(b);) voidmain( ) {inta[10]={1,2,3,4,5,6,7,8},i; for(i=2;i<4;i++){b=fun(&a[i])+b;printf ("%d",b);} printf("\n"); } 程序运行后的输出结果是( )。

A.1012

B.810

C.1028

D.1016


相关考题:

有以下程序#include stdio.hint b=2;int fun(int *k){ b=*k+b; return (b);}main(){ int a[10]={1,2,3,4,5,6,7,8},i;for(i=2;i4;i++) {b=fun(a[i])+b; printf("%d ",b);}printf("\n");}程序运行后的输出结果是A)10 12B)8 10C)10 28D)10 16

(35)有以下程序#include stdio.hint b=2;int fun(int *k){ b=*k+b;return(b);}main(){ int a[10]={1,2,3,4,5,6,7,8},I;for(i=2;i4;i++) {b=fun(a)+b;printf(“%d”,b);}printf(“\n”);}程序运行后输出的结果是A)10 12 B)8 10 C)10 28 D)10 16

有下列程序:#includestdi0.hintb=2;intfun(int*k){b=*k+b;return(b);)voidmain( ){inta[10]={1,2,3,4,5,6,7,8},i;for(i=2;i4;i++){b=fun(&a[i])+b;printf(%d,b);}printf(\n);}程序运行后的输出结果是( )。A.1012B.810C.1028D.1016

下列程序的输出结果是includeint b=2;int func(int *a) {b+=*a;return(b) ;}void m 下列程序的输出结果是 #include<iostream.h> int b=2; int func(int *a) {b+=*a;return(b) ;} void main( ) { int a=2,res=2; res+=func(a) ; cout<<res;}A.4B.6C.8D.10

下列程序的输出结果是includeint b=2;int func(int * a){b+= * a; return(b) ;}voi 下列程序的输出结果是 #include<iostream.h> int b=2; int func(int * a) {b+= * a; return(b) ;} void main( ) { int a=2, res=2; res+=func(a) ; cout < < res;}A.4B.6C.8D.10

以下程序的正确运行结果是()。includeint fun(int);void main(){int a=2,i;for(i=0; 以下程序的正确运行结果是( )。 #include<iostream.h> int fun(int); void main() { int a=2,i; for(i=0;i<3;i++) cout<<fun(a)<<end1; cout<<end1; } int fun(int a) { int b=0; static int c=3; b++;c++; return(a+b+c); }A.4,5,6B.6,7,9C.7,8,9D.7,7,7

有以下程序includeintt b=2;int fun(int*k) {b=*k+b;return(b);}main(){int a[10]={1, 有以下程序 #include<stdio.h> intt b=2; int fun(int*k) {b=*k+b;return(b);} main() { int a[10]={1,2,3,4,5,6,7,8,},i; for(i=2;i<4;i++) {b=fun(a[i])+b; printf("%d",b);} print("\n"); } 程序运行后的输出结果是______。A.10 12B.8 10C.10 28D.10 16

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

有下列程序: #includestdi0.h intb=2: intfun(int*k) {b=*k+b;return(b);} voidmain() {inta[1O]={1,2,3,4,5,6,7,8},i; for(i=2;i4;i++){b=fun(&a[i])+b;printf ("%d",b);} printf("\n"); } 程序运行后的输出结果是( )。A.1012B.810C.1028D.1016