首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
阅读下面程序:#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-
阅读下面程序:#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-
admin
2009-01-15
22
问题
阅读下面程序:#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<<end1;}则该程序的输出结果是( )。
选项
A、11
B、20
C、21
D、31
答案
4
解析
转载请注明原文地址:https://kaotiyun.com/show/4Nkp777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
有以下程序:#include<stdio.h>intf(intn){staticinta=1:n+=a++;returnn;}main(){inta=3,s;s=f(a);s=s+f(a);
有以下程序#includetypedefstruct{intb,p;}A;voidf(Ac)/*注意:c是结构变量名*/{intj;c.b+=1;c.p+=2;}main(){inti;Aa={1
请编写函数fun,函数的功能是:将大于形参m且紧靠m的k个素数存入xx所指的数组中。例如,若输入17,5,则应输出:19,23,29,31,37。注意:部分源程序在文件PROG1.C文件中。请勿改动主函数main和其他函数中的任何内容
下列给定程序的功能是:读入一个整数k(2≤k≤10000),输出它的所有质因子(即所有为素数的因子)。例如,若输入整数2310,则应输出2,3,5,7,11。请改正程序中的错误,使它能得出正确的结果。注意:不要改动main函数,不得增行或删行,也不得更
有以下函数:intaaa(char*s){char*t=s;while(*t++);t--;return(t-s);}以下关于aaa函数功能叙述正确的是()。
在学校中,“班级”与“学生”两个实体集之间的联系属于()关系。
表达式:(int)((double)9/2)—(9)%2的值是()。
已知一个文件中存放若干工人档案记录,其数据结构如下:stmcta{charnumber[100];intage;floatp[6];};定义一个数组:structab[10];
数据库设计中反映用户对数据要求的模式是
某二叉树的前序序列为ABCDEFG,中序序列为DCBAEFG,则该二叉树的深度(根结点在第1层)为()。
随机试题
建设项目竣工总结算在最后一个单项工程竣工结算确认后l5天内汇总,送业主后()天内审查完成。
根据进出境旅客行李物品“双通道制”的通关规定,下列表述中正确的是()。
甲公司是一家大型零售企业,其20×9年度发生的相关交易或事项如下:(1)20×9年1月1日,甲公司与乙公司签订商业用房租赁合同,向乙公司租入A大楼一至四层商业用房用于零售经营。根据租赁合同的约定,商业用房的租赁期为10年,自合同签订之日算起,乙公司有权在
位于中央窝上的视觉神经细胞是()。
下列哪个选项不属于我国国家监督体系?()
根据下列材料回答问题。2015年末,我国规模以上高技术制造业共有企业26894家,比2010年增加1077家;占规模以上制造业企业数的比重为7.8%,比2010年提高1.3个百分点。2015年末,我国高技术制造业从业人员1293.7万人,比2010年增
请简述多元回归分析模型包含的假设。
Thechildrennextdooroftenplaythefootballin【M1】______agardenbehindmyhouseandsometimesbreakm
"Theeffectofthismedicine______bymidnight,"thedoctortoldEmma,"Youhadbetternottrytoreadtonight."(北京大学2005年试题)
WhatpercentageofstudentsisstayingawayfromschoolinZimbabwein2008?
最新回复
(
0
)