首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
有以下程序 #include main() {unsigned char a=8,c: c=a>>3; printf(“%d\n”,c): } 程序运行后的输出结果是
有以下程序 #include main() {unsigned char a=8,c: c=a>>3; printf(“%d\n”,c): } 程序运行后的输出结果是
admin
2011-04-29
28
问题
有以下程序
#include
main()
{unsigned char a=8,c:
c=a>>3;
printf(“%d\n”,c):
}
程序运行后的输出结果是
选项
A、32
B、16
C、1
D、O
答案
C
解析
无符号数a右移3位,高位补0.其过程为a:000011000(a=8,b=a>> 3:00000001(b=1)。
转载请注明原文地址:https://kaotiyun.com/show/9PPp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
设有如下Command1的单击事件过程及fun过程:PrivateSubCommand1_Click()DimxAsIntegerx=Val(InputBox(“请输入一个整数”))
设窗体上有一个列表框控件List1,含有若干列表项。以下能表示当前被选中的列表项内容的是()。
执行以下程序段:a$=“VisualBasicProgramming”b$=“C++”c$=UCase(Left$(a$,7))&b$&Risht$(a$,12)后,变量c$的值为()。
以下关于过程及过程参数的描述中,错误的是()。
循环队列的存储空间为Q(1:100),初始状态为front=rear=100。经过一系列正常的入队与退队操作后,front=rear=99,则循环队列中的元素个数为()。
在考生目录下有一个工程文件sjt5.vbp和文本文件in5.dat,其中有若于个用一个空格符隔开的英文单词。窗体上有2个命令按钮,其功能是:单击“读数据”按钮,可以读入in5.dat文件中的所有内容并显示在文本框中。单击“统计”按钮,能
以下程序中sort( )函数的功能是对a所指数组中的数据进行由大到小的排序: void sort(int a[ ],int n) { int i,j,t; for(i=0;i<n-1;i++) for(j=i+1;j<n;j++)
在一个C语言程序中
下列选项中,能作为合法DOS文件名的是
以下程序中函数scmp的功能是返回形参指针s1和s2所指字符串中较小字符串的首地址 #include <stdio.h> #include <string.h> char*scmp(char*s1,char*s2) {if(s
随机试题
急性肾盂肾炎的诱因和原因包括
如肺炎病人用2天抗生素后,呼吸困难加重。烦躁甚,右肺呼吸音减弱,中下肺叩诊发浊。上部叩诊过清音。血PaO29.3kPa,PaCO27.5kPa,此时最重要的治疗措施应该是
异常支气管呼吸音可见于肺内空洞,最为常见的疾病是
A、心善B、肝善C、脾善D、肺善E、肾善重证见声音响亮,不喘不咳,呼吸均匀,皮肤润泽,其辨证为
下列各项中,不应计入当期“营业外支出”项目的有()’
影响金融工具久期的因素不包括()。
某工业企业为一般纳税人,本年发生下列经济业务:(1)4月1日向银行借入1000000元,月息为0.6%,偿还期限6个月,到期一次还本付息,该企业每月计提利息。借入款项用于正常生产经营活动。(2)10月1日,企业向银行连本带息一次性偿还4月1日借入的款
社会主义核心价值体系的精髓包括()。
设f(x)在[a,b]上连续,在(a,b)内可导,且f’(x)≠0,试证存在ξ,η∈(a,b),使
不合法的main函数命令行参数表示形式是
最新回复
(
0
)