首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
有以下程序: #include<stdioh> int fun(int x,int y) {if(x!=y)return(y); else return((x+y)/2); } main() {int a=4,b=
有以下程序: #include<stdioh> int fun(int x,int y) {if(x!=y)return(y); else return((x+y)/2); } main() {int a=4,b=
admin
2011-06-10
21
问题
有以下程序: #include<stdioh> int fun(int x,int y) {if(x!=y)return(y); else return((x+y)/2); } main() {int a=4,b=5,c=6; printf("%d\n",fun(2*a,fun(b,C))); } 程序运行后的输出结果是( )。
选项
A、3
B、6
C、8
D、12
答案
B
解析
转载请注明原文地址:https://jikaoti.com/ti/YBB0FFFM
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
下列关于栈的叙述正确的是()。
考生文件夹下有一个工程文件sjt4.vbp,窗体左端中有一个小的实心圆。程序运行时,单击窗体,圆将沿着正弦曲线的轨迹向右运动,运动一个正弦周期后,再沿着原来的轨迹退回到原来的位置,然后再沿正弦曲线的轨迹向右运动,如此周而复始。给出的程序不完整。要
在软件开发中,需求分析阶段可以使用的工具是()。
在窗体上画一个名称为Command1的命令按钮,编写如下程序代码PrivateTypeStudentsnAsString*10classAsString*20scoreAsDo
窗体上有1个名称为Command1的命令按钮,在设计模式下,双击Command1,将打开()。
以下声明数组和给数组赋值的语句中,正确的是()。
已知在4行3列的全局数组score(4,3)中存放了4个学生3门课程的考试成绩(均为整数)。现需要计算每个学生的总分,某人编写程序如下:OptionBase1PrivateSubCommand1_Click()
C语言中,函数值类型的定义可以缺省,此时函数值的隐含类型是
设有如下关系表:则下列操作中,正确的是()。
设有下列二叉树:对此二叉树先序遍历的结果为
随机试题
8255A在方式0工作时,端HA、B、C的输入/输出的组合种类数为()
乳癌根治切除术的切除范围
男,36岁。反复乏力、恶心、纳差3年,明确诊断为慢性乙型病毒性肝炎,肝功时有波动。10天前因参加麦收而过于劳累,近1周来感高度乏力、食欲不振,伴恶心、呕吐、腹胀、尿黄,皮肤、巩膜黄疸进行性加深。化验:肝功TBIL342μmol/L,DBIL170μmo
脾虚妊娠肿胀的主要证候不包括
【2010年第3题】题1~5:某车间长30m,宽18m,高12m,工作面高0.8m,灯具距工作面高10m,顶棚反射比为0.5,墙面反射比为0.3,地面反射比为0.2,现均匀布置10盏400W金属卤化物灯,灯具平面布置如下图所示,已知金属卤化物灯光通量为32
会计基础的目的是为了更加真实、公允地反映企业单位某一特定日期的财务状况和某一特定期间的经营成果。()
城市化也称为城镇化,最简单、最直观地讲,是乡村转变为城市的一种复杂过程。通常表现为()。
1号烧杯中有浓度为4%的盐水180克,2号烧杯中则为浓度为10%的盐水。从2号烧杯中取出120克盐水倒入1号烧杯中,再往2号烧杯中加水,使两个烧杯拥有一样多的同浓度盐水。请问,2号烧杯中原来有盐水多少克?()
IsStanfordstillauniversity?TheWailStreetJournalrecentlyreportedthatmorethanadozenstudentshaveleftschooltowo
Forthispart,youareallowed30minutestowriteashortessay.Youshouldstartyouressaywithabriefdescriptionofthepi
最新回复
(
0
)