填空题
已知递归函数fun的定义如下:
int fun(int n)
{
if(n<=1) return 1;//递归结束情况
else return n
*
fun(n-2);//递归}
则函数调用语句fun(5) 的返回值是______。
【参考答案】
O
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
定义字符指针char *str= hello ,已知sizeof(str)=4,则strlen(str)=______。
点击查看答案&解析
填空题
执行下列程序后的输出结果是______。#include<iostream>using namespace std;int main(){int x=3;int &y=x;y++;cout<<x<<end1;return 0;}
点击查看答案&解析
相关试题
在TestClass类的定义中,对赋值运算符=进...
有如下程序: #include<iostream> usi...
类定义如下: class TestClass { publ...
下面有关纯虚函数的表述中正确的是( )。
虚函数( )是可以不同的。