首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
执行下列语句后,输出结果为______。 int a=0,b=2,c=3; switch(a) { case 0:switch(b) { case 1:cout<<’*’;break;
执行下列语句后,输出结果为______。 int a=0,b=2,c=3; switch(a) { case 0:switch(b) { case 1:cout<<’*’;break;
admin
2012-01-20
19
问题
执行下列语句后,输出结果为______。
int a=0,b=2,c=3;
switch(a)
{
case 0:switch(b)
{
case 1:cout<<’*’;break;
case 2:tout<<’%’;break;
}
case 1:switch(C)
{
case 1:cout<<’$’;break;
case 2:cout<<’*’;break;
default:tout<<’#’;
}
}
选项
答案
%#
解析
转载请注明原文地址:https://kaotiyun.com/show/AHVp777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
程序流程图中带有箭头的线段表示的是()。
有以下程序:#include<stdio.h>intadd(inta,intb){return(a+b);}main(){intk,(*f)(),a=5,b=10; f=add; …}则以下函数调用语句错
在下列关系运算中,不改变关系表中的属性个数但能减少元组个数的是()。
以下不能将键盘输入的字符串:Thisisastring<回车>读入到str中的程序段是
有3个关系R、S和T如下:则由关系R和S得到关系T的操作是()。
程序测试的目的是()。
下列程序的运行结果是()。#inc1udevoidsub(int*s,int*y){staticintm=4;*y=s[0];m++;}voidmain(){
设有以下函数:voidfun(intn,char*s){……}则下面对函数指针的定义和赋值均是正确的是()。
下面的程序在编译时产生错误,其出错原因是()。#include<stdio.h>main(){int1case;floatprintF;printf("请输入2个数:");sc
随机试题
A.clearingB.establishedC.adverselyD.triggeringE.infectiousF.produceG.plantH.habitatsI.outbreak
常见的或有负债项目包括()。
依法治国,就是国家立法,公民守法。()
正常视力的标准应是距离5m视角为
甲向乙借款5万元,并以一台机器作抵押,办理了抵押登记。随后,甲又将该机器质押给丙。丙在占有该机器期间,将其交给丁修理,因拖欠修理费而被丁留置。下列哪些说法是正确的?
根据《专利法》的规定,下列各项中,不能成为专利申请人的是()。
在人际交往的过程中存在着制约和影响人际交往的一些障碍性因素。在信息沟通层次上存在的因素是()。
项目职业健康安全管理的内容包括________。
赵元的同事都是球迷,赵元在软件园工作的同学都不是球迷,李雅既是赵元的同学又是他的同事。王伟是赵元的同学但不在软件园工作,张明是赵元的同学但不是球迷。根据以上陈述,可以得出以下哪项?
Tattoosdidn’tspringupwiththedawnofbikergangsandrook’n’rollbands.They’vebeenaroundforalongtimeandhadmany
最新回复
(
0
)