首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
若有以下程序 #include<stdio.h> main(){int a=-11,b=10; a/=b/=-4: printf("%d%d\n",a,b);} 则程序的输出结果是
若有以下程序 #include<stdio.h> main(){int a=-11,b=10; a/=b/=-4: printf("%d%d\n",a,b);} 则程序的输出结果是
admin
2019-08-10
29
问题
若有以下程序
#include<stdio.h>
main(){int a=-11,b=10;
a/=b/=-4:
printf("%d%d\n",a,b);}
则程序的输出结果是
选项
A、-1-2
B、5-2
C、4-3
D、5-3
答案
B
解析
对于语句“a/=b,=-4;”相当于“a=a/(b=b/-4);”a初值为-11,b的初值为10,则运算以后10/-4值为-2,-11/-2值为5。
转载请注明原文地址:https://kaotiyun.com/show/RMRp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
以下叙述中错误的是
以下叙述中正确的是
有以下程序#includeintb=2;intfun(int*k){b=*k+b;return(b);}main(){inta[10]={1,2,3,4,5,6,7,8},i;for(i=2;i<4;i++){b=fun(&a[i])+b;p
以下叙述中正确的是
有满足实体完整性约束的条件下( )。
对于while(!E)s;,若要执行循环体s,则E的取值应为:
在长度为n的有序线性表中进行二分查找,最坏情况下需要比较的次数是()。
下列叙述中正确的是()。
表达式a+=a-=a=9的值是
若有以下定义intx[10],*pt=x;则对x数组元素的正确引用是
随机试题
A.然谷B.太溪C.照海D.阴谷五输穴中的合穴为
某饮料生产厂家去年改变了他们生产的某种著名饮料的成分,而同时印度洋某小岛的出口额开始下降。这个小岛的唯一出口产品——香子兰豆,占据全球供应量的一半以上。因此,分析家们认为:该著名饮料原来的成分里含有从香子兰豆提取的香子兰,但是新成分里没有。以下陈
患者,男,64岁。腹胀、食欲缺乏、双下肢水肿半年,伴右上腹疼痛1个月。既往有冠心病、高血压病病史。无肝炎病史及密切接触史。查体:血压160/95mmHg,巩膜黄染,面部及前胸部可见数个蜘蛛痣。右下肺呼吸音减低,叩浊,心率108次/分,律齐。腹部膨隆,肝脾触
关于医疗事故构成中主体要件的错误说法是()
商代的主要法律有哪些?
依据《建设项目竣工环境保护验收技术规范生态影响类》,对于()项目,验收调查应在工况稳定、生产负荷达到近期预测生产能力(或交通量)75%以上的情况下进行。
以下是三位教师在进行“燃烧和灭火”一节的教学时导入环节的设计方案。方案一:教师给学生预备了实验用品,包括:酒精灯、火柴、纸条、煤块、小石块、坩埚钳。教师给学生的任务是:每组从实验用品中选定一种物质为操作对象,在30s内动手让这种物质燃烧。并且当教师数到
求下列各微分方程的通解:
Increasingly,overthepasttenyears,people--especiallyyoungpeople--havebecomeawareoftheneedtochangetheireating
Thereiswidespreadconsensusamongscholarsthatsecondlanguageacquisition(MB1SLA)emergedasadistinctfieldofresearchfr
最新回复
(
0
)