首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
自考
main() {int x=15,y=21,z=0; switch(x%3) {case 0:z++;break; case 1:z++; switch(y%2) {default:z++; case
main() {int x=15,y=21,z=0; switch(x%3) {case 0:z++;break; case 1:z++; switch(y%2) {default:z++; case
admin
2008-07-01
22
问题
main()
{int x=15,y=21,z=0;
switch(x%3)
{case 0:z++;break;
case 1:z++;
switch(y%2)
{default:z++;
case 0:z++;break;
}
}
printf ("%d\n",z);
}
选项
答案
1
解析
转载请注明原文地址:https://kaotiyun.com/show/NPAx777K
本试题收录于:
高级语言程序设计题库理工类分类
0
高级语言程序设计
理工类
相关试题推荐
在常见的耦合类型中,应尽量避免使用的是()
某字节交叉多路通道连接6台设备,其数据传输速率如下表所示。计算每台设备传输数据两次请求的时间间隔。
由霍纳法则给定表达式E=(a+b+c)+d(e++fg),根据多处理机并行算法给运算加速,通过树形方法计算并行处理的处理机机数P、级别Tp、加速比Sp和设备利用率Ep。
设某机阶值6位、尾数48位,阶符和数符不在其内,当尾数分别以2、8、16为基时,在非负阶、正尾数、规格化数情况下,求出其最小阶、最大阶、阶的个数、最小尾数值、最大尾数值、可表示的最小值和最大值及可表示的尾数和规格化数的总个数。
系统结构是对计算机系统中________的定义及其上下的________。
以外汇为标的物的期货合约是____________。
/*设从键盘输入:420<回车>*/#include<stdio.h>main(){charc;while((c=getchar())!=’\n’)switch(C-’0’){case0:
#include<stdio.h>voidmain(){inti=11,j;j=i%3;switch(j){case1:case2:printf("%d\n",j);break;
#include<stdio.h>main(){char*a="12134211";intv1=0,v2=0,v3=0,v4=0,k;for(k=0;k<=strlen(a);k++)switch(*a
随机试题
在建设工程进度控制中,应用信息技术属于()。
依我国《继承法》,关于遗嘱继承与法定继承的关系,正确的选项是()。
如何进行潜在危机的评估?
CT成像,通常不需要拍摄骨窗的颅脑病变是
A.一般不得超过7天用量B.不得超过2天常用量C.一般不得超过3天用量D.不得超过3天常用量E.不得超过2天极量麻醉药品注射剂处方()。
《环境保护法》中规定:“加强企业管理,实行文明施工,对于污染环境的废气、废水、废渣,要综合利用、化害为利;需要排放的,必须遵循国家规定的标准;一时达不到国家标准的要限制企业的生产规模,预期达不到国家标准的要限期治理。”()
背景施工单位甲承揽了国内某机场(单跑道)跑道加长的建设任务,建设单位的基本要求之一是该项工程的施工不能影响机场的正常运行。在施工过程中发生了以下事件:事件一:施工单位在水泥混凝土道面面层正式施工前,摊铺了试验段。事件二:施工单位绘制了施工进度计划网络
儿童科学教育的原因在于()
大革命失败后,以毛泽东为代表的共产党人是怎样开创中国革命的正确道路的?“文革”结束后,以邓小平为旨的中国共产党人是怎样开创建设有中国特色社会主义道路的?这两者的根本相同点是什么?
A、 B、 C、 D、 D
最新回复
(
0
)