单选题:有以下程序:fun(int x){ int P;if(x==0|1 x==1)return(3);p=x-fun(x-

  • 题目分类:C语言
  • 题目类型:单选题
  • 查看权限:VIP
题目内容:
有以下程序:
fun(int x)
{ int P;
if(x==0|1 x==1)return(3);
p=x-fun(x-2);.
return P;
}
main()
{printf(”%d\n”,fun(7));)
程序执行后的输出结果是( )。 A.7
B.3
C.2
D.0

参考答案:
答案解析:

下列叙述中正确的是( )。

下列叙述中正确的是( )。A.软件测试应该由程序开发者来完成 B.程序经调试后一般不需要测试 C.软件维护只包括对程序代码的维护 D.以上三种说法都不对

查看答案

Sally specializes more now than she did in her"last job.

Sally specializes more now than she did in her"last job.A.Right B.Wrong C.Doesn

查看答案

What will the woman do for the man?

What will the woman do for the man?A.Buy some food for him. B.Send him to the

查看答案

Office furniture direct frorfi the manufacturerFree delivery

Office furniture direct frorfi the manufacturerFree delivery; 21-day money back

查看答案

Business Latest Demand for office space in sharp decline du

Business Latest Demand for office space in sharp decline due to a slowing econo

查看答案