【单选题】
下列程序的输出结果为( )。
# include <iostream.h>
int func(int n)
{
if (n<1)return 1;
else return n + func (n-1);
return 0;
{
void main( )
{
cout << func (5) << endl;
}
A. Variant
B. Byte
C. Boolean
D. Integer
查看答案解析
参考答案:
正在加载...
答案解析
正在加载...
根据网考网移动考试中心的统计,该试题:
64%的考友选择了A选项
16%的考友选择了B选项
8%的考友选择了C选项
12%的考友选择了D选项