登录 | 注册 | 收藏鲤鱼网 | 捐助鲤鱼 | 著作权声明 | 鲤鱼首页
投递新闻 您所在的位置:鲤鱼首页 >全国计算机等级考试NCRE新闻 >2009年9月计算机等级考试二级C语言模拟试题(8)
时间:2009-09-12 来源:鲤鱼网 (精品全国计算机等级考试NCRE资料,点击即可下)
(26)有如下程序段
int a=14,b=15,x;
char c=′A′;
x=(a&&b)&&(c<′B′);
执行该程序段后,x的值为
A)ture B)false C)0 D)1
【参考答案】D
(27)下列程序执行后的输出结果是
void func1(int i);
void func2(int i);
char st[]="hello,friend!";
void func1(int i)
{ printf("%c",st[i]);
if(i<3){i+=2;func2(i);}}
void func2(int i)
if(i<3){i+=2;func1(i);}}
main()
{ int i=0; func1(i); printf("\n");}
A)hello B)hel C)hlo D)hlm
【参考答案】C
Copyright©2009 iliyu.com All Rights Reserved 鲤鱼网