职业资格>计算机等级 > 二级C语言程序设计
二级C语言程序设计 - 相关题库
单选题 编号:2482793
1.有以下程序
#include <stdio.h>
int fun (int x,int y)
{
   if(x!=y) return ((x+y)/2);
  else return (x);
}
main()
{  
   int a=4,b=5,c=6;
   printf("%d ",fun(2*a,fun(b,c)));
}
程序运行后的输出结果是(  )。
  • A.3
  • B.6
  • C.8
  • D.12

选择购买的题库