题目内容

以下程序的输出结果是________。#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

It is far more effective for parents to allow for the child’s _______ and let him make his own choice rather than make a decision for him.

A. perspective
B. perseverance
C. percentage
D. passage

答案查题题库