首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
有如下程序 #include main() { int x = 0x13; printf("%d\n", x+1); } 程序运行后的输出结果是( )。
有如下程序 #include main() { int x = 0x13; printf("%d\n", x+1); } 程序运行后的输出结果是( )。
admin
2020-06-16
26
问题
有如下程序
#include
main()
{
int x = 0x13;
printf("%d\n", x+1);
}
程序运行后的输出结果是( )。
选项
A、20
B、14
C、12
D、13
答案
A
解析
由两个双引号""引起来的是一个字符串常量,而字符变量只能存放单个字符常量,答案选A)。
转载请注明原文地址:https://kaotiyun.com/show/ZpCp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
定义无符号整数类为UInt,下面可以作为类UInt实例化值的是()。
下列给定程序中,函数fun的功能是:计算f(x)=1+x+<10一6。若x=2.5,函数值为12.182494。请在程序的下画线处填入正确的内容并把下画线删除,使程序得出正确的结果。注意:不得增行或删行,也不得更改程序的结构。试题程
要求定义一个具有6个元素的int型一维数组,以下选项中错误的是()。
有如下程序:#include<stdio.h>main(){if(’\0’==0)putchar(’X’);if(’0’==0)putchar(’Y’);if(’a’>’b’)putchar(’Z’);
请编函数fun,其功能是将一个数字字符串转换成与其面值相同的长整型整数。可调用strlen函数求字符串的长度。例如,在键盘输入字符串2345210,函数返回长整型数2345210。注意:请勿改动主函数main和其他函数中的任何内容,仅在函数fun
下列给定程序中,函数fun的功能是:把形参a所指数组中的偶数按原顺序依次存放到a[0]、a[1]、a[2]…中,把奇数从数组中删除,偶数的个数通过函数值返回。例如,若a所指数组中的数据最初排列为:9,1,4,2,3,6,5,8,7,删除奇数后a所指数组中
若有以下定义:structtt{charname[10];charsex;}aa={"aaaa”,,F’},*P=&aa;则错误的语句是()。
有以下程序:#include#includemain(){charstr[]={“HelloBeijing”;printf(“%d,%d\n”,strlen(str),sizeof(str))
若有定义:charc;ihtd;,程序运行时输入:c=1d=2,能把字符l输入给变量c、把整数2输入给变量d的输入语句是()。
设有两行定义语句:intscanf;floatcase;则以下叙述中正确的是()。
随机试题
下列各项,不属全国突发事件应急预案内容的是()
Doyoufindgettingupinthemorningsodifficultthatitispainful?Thismightbecalledlaziness,butDr.Kleitmanhasanew
物业管理是市场经济的产物,和大多数服务行业一样,物业管理行业的现状是弱、小、散、乱、差,服务产品单一、管理项目和类型少、服务手段原始、粗放经营等。相当数量的物业服务企业基本上是小作坊式经营,“小而全、多而杂”的低水平管理是当前物业管理的一大顽症,也是现在物
中标人不履行与招标人订立的物业服务合同,给招标人造成损失的,()。
一般资料:张某,女性,19岁,大学一年级学生。案例介绍:张某以高分考入某重点大学,她学习认真,乐观开朗,热情助人,人际关系良好,很受同学的喜欢。但这学期开学后同学们纷纷反映张某变了,有时很兴奋,不停地自言自语说着什么,但同学们听不懂她在说什么,说话
期末考试后,拿到考试成绩的小王将本学期的考试成绩与上学期进行对比,发现经过一个学期的努力,学习成绩有了一个大的提高,学习积极性大大提高。按照评价所采用的标准,小王的评价是一种()。
【慈沮利】(UlrictlZwingli,1484—1531)
认为教育之所以是教育在于它自身的专门特点,并试图从教育自身的矛盾特殊性来揭示教育本质的学说是()
战时临阵脱逃罪侵犯的客体是()。
Expertsinthefoodindustryarethinkingalotabouttrashthesedays.Restaurants,colleges,hospitalsandotherinstitutions
最新回复
(
0
)