题目内容

下列程序执行后的输出结果是()。char st [ ] = "hello, friend! ";void funcl (int i){printf ("%c", st [i] ) ;if (i < 3) { i += 2; func2 (i); }}void func2 (int i){Printf(“%c”,st [i] ) ;if (i < 3) { i+=2; func1(i) ; }}void main ( ){int i = 0; func1(i);printf ("\n");}

A. hello
B. hel
C. hlo
D. hlm

查看答案
更多问题

有以下程序,程序运行后的输出结果是()。int f (int n){if (n == 1) return 1;else return f(n-1) +1;}void main ( ){int i, j = 0;for (i=1;i<3;i++) j+=f(i);printf ("%d\n", j) ;}

A. 4
B. 3
C. 2
D. 1

以下程序的输出的结果是()。void incre( ) ;int x = 3;void main ( ){int i;for (i = 1; i < x; i++) incre ( );}void incre ( ){staic int x = 1;x*=x+1;printf (" %d ", x) ;}

A. 33
B. 22
C. 26
D. 25

以下程序的输出的结果是()。int a = 3;main ( ){int s = 0;{ int a=5;s+=a++;}s+=a++;printf(“%d\n”,s);}

A. 8
B. 10
C. 7
D. 11

以下程序的输出的结果是()。void f (int a[ ], int i, int j){ int t;If (i

A. 5,4,3,2,1,
B. 5,2,3,4,1,
C. 1,2,3,4,5,
D. 1,2,5,4,3,

答案查题题库