首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
若有以下程序: #include main( ) { int a=-11,b=10; a/=b/=-4: printf("%d%d\n",a,b); } 则程序的输出结果是( )。
若有以下程序: #include main( ) { int a=-11,b=10; a/=b/=-4: printf("%d%d\n",a,b); } 则程序的输出结果是( )。
admin
2015-08-09
17
问题
若有以下程序:
#include
main( )
{ int a=-11,b=10;
a/=b/=-4:
printf("%d%d\n",a,b);
}
则程序的输出结果是( )。
选项
A、4 -3
B、-1 -2
C、5 -2
D、5 -3
答案
C
解析
先执行b/=-4,即b=b/-4,结果为-2,然后执行a/=-2,即a=a/-2,结果为5。所以选择C。
转载请注明原文地址:https://kaotiyun.com/show/JLDp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
运行下列程序时,若输入的数据为“1,2,3”,则输出结果是()。main(){floata,b,C,t;scanf("%f,%f,%of",&a,&b,&C);if(a<B){t=a;a=b;b=t
x、y、x均为int型变量,描述“x、y和z中至少有两个为正数”的表达式是______。
以下数组定义中错误的是
下列有关数据库的描述,正确的是
以理程序的输出结果______。main(){charst[20]="he11\O\t\\";printf("%d%d\n",str1en(st),sizeof(st));}
在嵌套使用if语句时,C语言规定else总是()。
下列选项中不属于结构化程序设计方法的是()。
以下叙述中正确的是
有以下程序,其中函数的功能是将多个字符串按字典顺序排序:#include<string.h>voidf(char*p[],intn){char*t;inti,j;for(i=0;i<n-1;i++)for
下列选项中不是字符常量的是()
随机试题
Windows资源管理器操作 图4为windows7资源管理器中打开某文件夹后的窗口截图,请结合所学知识回答下列问题。 用鼠标拖放功能将文件“
M3诱导缓解最佳方案为
肾病综合征的并发症有( )。
表面不平坦,呈脂肪光泽,手紧握置于耳旁,可闻轻微爆裂声。体轻,质松,易碎,并有特异臭气的矿物药是
甲国A公司向乙国B公司出口一批货物,双方约定适用2010年《国际贸易术语解释通则》中CIF术语。该批货物由丙国C公司“乐安”号商船承运,运输途中船舶搁浅,为起浮抛弃了部分货物。船舶起浮后继续航行中又因恶劣天气,部分货物被海浪打人海中。到目的港后发现还有部分
下列有关注册会计师在完成审计工作中的描述正确的是()。
被称为“近代中国开眼看世界的第一人”的是()
如下图,正方体ABCD一A1B1C1D1中,O是DD1的中点,O是底面正方形ABCD的中心,P为棱A1B1上任意一点,则直线OP与直线AM所成角的大小等于_____
某企业按法定程序办妥增资手续,以资本公积200000元转增注册资本。假定不考虑其他因素,该公司应该编制的会计分录是()。
Olderpeoplewhoholdtemporaryorpart-timejobsafterretirementenjoybetterphysicalandmentalhealththanthosewhostopw
最新回复
(
0
)