首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面程序的结果为 【 】 。 #include<iostream.h> void main( ) { int a=1,b=2; bool c=1; if((a>b) ||c)
下面程序的结果为 【 】 。 #include<iostream.h> void main( ) { int a=1,b=2; bool c=1; if((a>b) ||c)
admin
2010-03-29
23
问题
下面程序的结果为 【 】 。
#include<iostream.h>
void main( )
{
int a=1,b=2;
bool c=1;
if((a>b) ||c) cout<<"true"<< end1;
else
cout<<"false"<<end1;
}
选项
答案
真
解析
本题考查的是对于逻辑运算符号的理解,“||”运算符的任何一边取值为真,则整个运算结果为真。
转载请注明原文地址:https://kaotiyun.com/show/rPjp777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
若已建立以下链表结构,指针p、s分别指向如图所示结点则不能将s所指结点插入到链表末尾的语句组是
已定义以下函数intfun(int*p){return*p;}fun函数返回值是
若有以下程序#includeintk=7,m=5;voidf(int**s){int*t=&k;s=&t;*s=&m;printf("%d,%d,%d,",k,*t,**s);}main(){in
有以下程序main(){chara,b,c,d;scanf("%c%c",&a,&b);c=getchar();d=getchar();printf("%c%c%c%c\n",a,b,c,d);}当执行程序时,按下列方式输入数据(从第
以下程序:#include<stdio.h>main(){charstr[10];scanf(’’%s’’,&str);printf(’’%s\n’’,str);}运行上面的程序,输入字符串
以下不合法的字符常量是
在C语言程序中,以下说法正确的是()。
下面的for语句的循环次数为()。for(x=1,y=0;(y!=19)&&(x
在下列关系运算中,不改变关系表中的属性个数但能减少元组个数的是()。
以下C++语言中用于单行注释的是
随机试题
外国银行分行以外的外资金融机构对一个企业及其关联企业的授信余额,不得超过其资本的
烤瓷构筑结束后,牙冠比天然牙冠实际大
某企业原有职工110人,其中技术人员是非技术人员的10倍,今年招聘后,两类人员的人数之比未变,且现有职工中技术人员比非技术人员多153人。问今年新招非技术人员多少人?()
依法治国是中国共产党领导人民治理国家的基本方略,其基本要点有
邮件服务器的配置有以下几个步骤,正确的安装顺序为:(1)。A.设置邮件服务器端口、邮箱根目录、认证方式B.邮件服务器中添加域、用户C.在邮件客户端软件中配置用户邮箱D.利用“配置您的服务器向导”安装相关组件图2-2中默认
按如下要求完成综合应用(所有控件的属性必须在表单设计器的属忤窗口中设置):①根据“项目信息”、“零件信息”和“使用零件”三个表建立一个查询(沣意表之间的连接字段),该查询包含项目号、项目名、零件名称和(使用)数量四个字段,并要求先按项日号升序排序
Helenhadtoshout______abovethesoundofthemusic.
CompletethesummarybelowusingthelistofwordsA-lbelow.WritethecorrectletterA-linboxes38-40onyouranswersheet.
Insize,Canadaisthesecondlargestcountryonearth.Intermsof【C1】______,itisamemberofBigSeven,theworld’sleading
"Youunderstandgrandmotherwhenshetalkstoyou,don’tyou,darling?"Thegirlnods.Johnsonmether—andherDanishmother
最新回复
(
0
)