题目内容

有如下函数调用语句 func(rec1,rec2+rec3,func(rec1,rec2,rec3)); 函数func的形参数个数是

A. 3
B. 4
C. 5
D. 有语法错误

查看答案
更多问题

以下程序的输出结果是________。#include int fun (int k){ int n;if(k>0) n=k+fun(k-1);else n=0;return n; }void main(){ int w=5; printf("%d\n", fun(w)); }

A. 5 4 3 2 1 0
B. 0 1 2 3 4 5
C. 15
D. 25

以下程序输出的结果是________。#include int fun(int n){ int s;if(n==1||n==2) s=2;else s=n-fun(n-1);return s; }void main(){ printf("%d\n",fun(3));}

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

The “discipline” message asks people to save, while the “enjoy yourself” message asks people to spend; therefore, they ______ each other.

A. consist
B. contradict
C. convince
D. conduct

It is a(n) ________ that in some odd way world peace appears to depend on our spending millions of pounds on weapons that can kill us all.

A. product
B. potential
C. property
D. paradox

答案查题题库