首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
有以下程序: #include<stdio.h> main() {intx=0xg; pfinff("%c\n",’A’+x); } 程序运行后的输出结果是( )。
有以下程序: #include<stdio.h> main() {intx=0xg; pfinff("%c\n",’A’+x); } 程序运行后的输出结果是( )。
admin
2021-07-09
42
问题
有以下程序:
#include<stdio.h>
main()
{intx=0xg;
pfinff("%c\n",’A’+x);
}
程序运行后的输出结果是( )。
选项
A、I
B、J
C、K
D、H
答案
B
解析
printf("%c\n",’A’+x),x=0x9(16)转为十进制x=9,因此printf("%c\n",’A’+9),打印格式要求是%c,因此需要从字符A,按字母顺序向后偏移9个位置,可得结果为J。故答案为B选项。
转载请注明原文地址:https://kaotiyun.com/show/xokp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
有以下程序:#includevoidfun(char(*P)[6]){int1;for(i=0;i
若有以下程序#includemain(){inta=1,b=2,c=3,d=4;if((a=2)||(b=1))c=2;if((c==3)&&(d=-1))a=5;printf("%d,%d,%d,%d\n",a,b
以下叙述中正确的是
有以下程序#include#defineS(x)4*(x)*x+1voidmain(){intk=5,j=2;printf("%d\n",S(k+j));}程序运行后的输
有下列程序:fun(charp[][10]){intn=0,i;for(i=0;i<7;i++)if(p[i][0]==’T’)n++;returnn;}main(){charstr[][10]={"Mon","T
定义部门关系模式:部门(部门号,部门名,部门成员,部门总经理),使它不满足第一范式的属性是
若有定义语句:intyear=2009,*p=&year;以下不能使变量year中的值增至2010的语句是()。
在软件开发中,需求分析阶段产生的主要文档是()。
下列哪一条不属于数据库设计的任务?()
有3个关系R、S和T如下:则由关系R和S得到关系T的操作是()。
随机试题
当下颌从姿势位闭合,若只有少数牙甚至个别牙接触,提示这些牙有切牙的切缘或尖牙的牙尖有磨损小平面,提示有
在某县50万人口中进行子宫颈癌普查,此项研究的性质为对查出的可疑因素-酸菜进行控制性食用,观察该地食管癌发病率的变化,此项研究性质为
牙周炎伴糖尿病的特征如下,除外
38岁已婚妇女,孕0产0,停经2个月,阴道不规则出血2周,检查阴道出血似月经量,阴道黏膜正常,宫颈着色蓝,软,子宫增大如孕12周,软,双附件(-),尿妊免试验(+),B超提示宫内弥漫光点样回声。对该病例的处理,以下哪项错误
执法为民是社会主义法治的本质要求,据此,法院和法官应在民事审判中遵守诉讼程序,履行释明义务。下列哪一审判行为符合执法为民的要求?(2013年试卷三第36题)
通过试算平衡,并不能保证全部记账工作完全正确。()
投资者必须在证券交易所设立账户,才能买卖的国债是()。
通常认为人的审美判断是主观的,短时间内的确如此,人们对当代艺术作品的评价就经常出现较大分歧。但是,随着时间的流逝,审美中的主观因素逐渐消失。当一件艺术作品历经几个世纪还能持续给人带来愉悦和美感,如同达.芬奇的绘画和巴赫的音乐那样,我们就可以相当客观地称它为
核心竞争力的特征包括()等。
政法委领导下的公安机关是社会治安综合治理的领导力量。( )
最新回复
(
0
)