柠檬试题库
search
首页
计算机
公务员
驾照
关于
share
若有以下程序 #include
main() { int c; c = 13|5; printf("%d\n", c); } 则程序的输出结果是
A.13
B.15
C.18
D.5
热度🔥1,074
参考答案:A
解析:
【解析】本题考查位运算中按位或运算符,或运算只要两个比较的位中有一个为1,其结果是1,否则结果为0,,13用二进制表示为00001101,5用二进制表示为00000101,或后00001101,即13,选项A正确。
复制题目向AI提问
content_copy
content_copy
扫码免费计算机二级刷题
2025年计算机等级考试题库
推荐
为窗体或报表上的控件设置属性值的宏操作是
若有以下程序 #include #include #include typedef struct stu { char *name, gender; int score; } STU; void f(char *p) { p=(char *)malloc(10); strcpy(p, "Qian"); } main() { STU a={NULL, 'm', 290}, b; a.name=(char *)malloc(10); strcpy( a.name, "Zhao" ); b = a; f(b.name); b.gender = 'f'; b.score = 350; printf("%s,%c,%d,", a.name, a.gender, a.score); printf("%s,%c,%d\n", b.name, b.gender, b.score); } 则程序的输出结果是
设a=4,b=5,c=6,执行语句Print a<b And b<c后,窗体上显示的是( )。
与下述ER图等价的UML类图是()
标签
二级C语言
13
结果
程序
运算