首页 › 答案 › 题库 › 远程教育 › 联大学堂

对于以下递归函数f,调用f (3)的返回值是()。

对于以下递归函数f,调用f (3)的返回值是()。
f (int n)
{ return ((n<;=0) ? n: f(n-1)+f(n-2));
}
正确答案:(1) -2;