首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
阅读下面程序: #include<iostream.h> fun(int a,int b) { int c; c=a+b; return c; } void main() { int x=6,y=
阅读下面程序: #include<iostream.h> fun(int a,int b) { int c; c=a+b; return c; } void main() { int x=6,y=
admin
2012-01-20
25
问题
阅读下面程序: #include<iostream.h> fun(int a,int b) { int c; c=a+b; return c; } void main() { int x=6,y=7,z=8,r; r=fun((x--,y++,x+y),z--); cout<<r<<endl; } 则该程序的输出结果是( )。
选项
A、11
B、20
C、21
D、31
答案
C
解析
转载请注明原文地址:https://kaotiyun.com/show/9CVp777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
有以下程序#include<stdio.h>main(){inta,b;for(a=0;a<3;a++){scanf("%d",&b);switch(b){case1:p
以下叙述中正确的是()。
若有定义intx,y;并已正确给变量赋值,则以下选项中与表达式(x—y)?(x++):(y++)中的条件表达式(x—y)等价的是()。
定义结构体数组structStu{intnum;charname[20];x[5]={1,"ZHAO",2,"QIAN",3,"SUN",4,"LEE",5,"ZHOU"};for(i=1;i
算法空间复杂度的度量方法是
在黑盒测试方法中,设计测试用例的主要根据是( )。
建立表示学生选修课程活动的实体联系模型,其中的两个实体分别是()。
在进行逻辑设计时,将E-R图中实体之间联系转换为关系数据库的()。
一个算法应当具有五个特性,以下叙述中正确的是()。
随机试题
抢救休克型中毒性痢疾,哪项措施不得当
影响Χ线强度的因素中,不包括
某实验室用同一检验方法测定食品中的铅。小李的测定误差为2%,小王的测定误差为10%,经统计检验,检测结果不存在离群值。两人检测的误差相差那么大,是因为存在
对于不同的生态功能区实行分类管理政策,产业政策要引导优化开发区域转移(),提升产业结构层次。
甲公司为增值税一般纳税人,适用的增值税税率为17%,每月月初发放上月工资,2016年12月1日,“应付职工薪酬”科目贷方余额为33万元。该企业2016年12月发生职工薪酬业务如下:(1)5日,结算上月应付职工薪酬33万元。其中代扣代缴的职工个人所得税1.
关于中期财务报告的确认与计量,下列说法中正确的有()。
2016年8月28日,中国航空发动机集团公司成立大会在北京举行。下列关于航空发动机的说法错误的是()。
新民主主义理论的基本点有
如果一个过程不包含RETURN语句,或者RETURN语句中没有指定表达式,那么该过程:
Thiswillmakeschoolsmoredirectlyandeffectively______toparents,andmoreresponsivetotheircriticismsandwishes.
最新回复
(
0
)