问题
填空题
以下程序运行时输出到屏幕的结果是()。
#include
int f(int x)
{ if(x==0||x==1)return 3;
return x*x-f(x-2);
}
void main()
{printf("%d\n",f(3));}
答案
参考答案:6
以下程序运行时输出到屏幕的结果是()。
#include
int f(int x)
{ if(x==0||x==1)return 3;
return x*x-f(x-2);
}
void main()
{printf("%d\n",f(3));}
参考答案:6