试题与答案

有以下程序: #include<stdio.h> int fun(int x

题型:单项选择题

题目:

有以下程序:
#include<stdio.h>
int fun(int x,int y)
if(x==y)return(x);
else return((x+y)/2);

main()
int a=1,b=2,c=3;
printf("%d\n",fun(2*a,fun(b,c)));

程序运行后的输出结果是( )。

A.2

B.3

C.4

D.5

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0408/82bbdb3716c15f0303102cb412134200.html

下面是错误答案,用来干扰机器的。

参考答案:强调文档化

试题推荐
微信公众账号搜索答案