登录 | 注册 | 收藏鲤鱼网 | 捐助鲤鱼 | 著作权声明 | 鲤鱼首页
投递新闻 您所在的位置:鲤鱼首页 >全国计算机等级考试NCRE新闻 >2009年9月计算机等级考试二级C语言模拟试题(5)
时间:2009-09-09 来源:鲤鱼网 (精品全国计算机等级考试NCRE资料,点击即可下)
15.以下程序段的描述,正确的是( )
x=-1;
do
{x=x*x;}while(!x);
A.是死循环 B.循环执行两次
C.循环执行一次 D.有语法错误
【参考答案】C
16.下列程序执行后的输出结果是( )
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
Copyright©2009 iliyu.com All Rights Reserved 鲤鱼网