单项选择题
请读程序: # include<stdio.h> f(int b[],int n) int i,r; r=l; for(i=0;i<=n;i++)r=r*b[i]; return r; main() int x a[]=2,3,4,5,6,7,8,9; x=f(a,3); printf ("%d\n",x); 上面程序的输出结果是 ( )
A.720
B.120
C.24
D.6
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
请读程序: # include<stdio.h> void fun(int * s) static int j=0; do s[j]+=s[j+1] while( + + j<2); main( ) int k,a[10]=l,2,3,4,5; for(k=l;k<3;k+ +)fun(a); for(k=0;k<5;k++)prinf( %d ,a[k]); 上面程序的输出结果是 ( )
A.34756
B.23445
C.35745
D.12345
点击查看答案
单项选择题
请读程序: # includde<stdio.h> # include<string.> void fun(char * s) char a[10]; strcpy(a, STRING ); s=a; main() char*p; fun(p); print( %s n ,p); 上面程序的输出结果(表示空格) ( )
点击查看答案
相关试题
A
C
D
A.6B.8C.4D.2
A.0.000000B.0.250000C...