首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
若a是float型变量,且a=6,则表达式“a/2+(int) (a+1)%2”的值为【 】。
若a是float型变量,且a=6,则表达式“a/2+(int) (a+1)%2”的值为【 】。
admin
2010-01-05
43
问题
若a是float型变量,且a=6,则表达式“a/2+(int) (a+1)%2”的值为【 】。
选项
答案
4
解析
a/2的值为3,表达式(int)(a+1)%2的值为1,所以最后结果为4。
转载请注明原文地址:https://kaotiyun.com/show/56wp777K
本试题收录于:
二级Access题库NCRE全国计算机二级分类
0
二级Access
NCRE全国计算机二级
相关试题推荐
在C++中,编译系统自动为一个类生成默认构造函数的条件是()。
有如下程序:#include#includeusingnamespacestd;classWheel{public:Wheel(strings=
设有关键码序列(66,13,51,76,81,26,57,69,23),要按关键码值递增的次序排序,若采用快速排序法,并以第一个元素为划分的基准,那么第一趟划分后的结果为()。
给定程序中,函数fun的功能是:找出形参s所指字符串中出现频率最高的字母(不区分大小写),并统计出其出现的次数。例如,形参s所指的字符串为:abcAbsmaxless,程序执行后的输出结果为:letter’a’:3timesl
下列关于线性链表的描述中,正确的是()。Ⅰ、只含有一个指针域来存放下一个元素地址Ⅱ、指针域中的指针用于指向该结点的前一个或后一个结点(即前件或后件)Ⅲ、结点由两部分组成:数据域和指针域。
在函数中,定义一个变量时,默认的存储类型是
有如下函数模板:templateTcast(Uu){returnu;}其功能是将U类型数据转换为T类型数据。已知i为int型变量,下列对模板函数cast的调用中正确的是()。
设序列长度为n,在最坏情况下,时间复杂度为O(log2n)的算法是
在结构化程序设计中,模块划分的原则是()。
随机试题
出版物发行员作业管理规范的内容包括()。
张某委托甲房地产经纪公司(以下简称甲公司)承租一套住房,甲公司委派房地产经纪人刘某为张某服务。刘某通过发布广告信息,很快找到了张某满意的房源,该房源的所有权人为王某。看房前甲公司与张某签订的委托协议约定:张某向甲公司交纳看房费200元。张某与王某签订租赁协
[2011年第095题,2008年第110题,1998年第079题,1997年第096题,1997年第094题,1995年第108题]关于防烟楼梯间的设置,下列哪条不当?
背景某新建机场建设施工过程中,场道工程度部分施工图设计作了重大变更,空管工程、目视助航工程的部分施工图设计作了小的变更,航站楼弱电系统工程施工图设计未作变更。施工结束后,施工单位和有关部门分别对工程进行了自检、自验。航站楼弱电系统工程施工图如何绘制?
下列记账凭证中,可以用于登记银行存款日记账的有()。
用足够多的10元、5元和1元面值的钞票来购买20元的商品,不同的支付方法有:
《菲利普二世时代的地中海和地中海世界》(南京大学2009年世界史复试真题)
计算
KarenRusawasa30-year-oldwomanandthemotheroffourchildren.ForthepastseveralmonthsKarenhadbeenexperiencingrepe
Theadvantagesanddisadvantagesofalargepopulationhavelongbeenasubjectofdiscussionamongeconomists.Ithasbeenargu
最新回复
(
0
)