填空题
下列for语句的循环次数为
【8】
。
for(int a=0,b=1;b&&a<5;a++);
【参考答案】
【8】5
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
下面程序的结果为 【7】 。 #include<iostream.h> void main( ) int a=1,b=2; bool c=1; if((a>b)||c) cout<< true <<endl; else cout<< false <<endl;
点击查看答案&解析
填空题
下面程序的输出结果是【9】。 #include<iostream.h> void main( ) int a[6]=1,2,3,4,5,6; for(int i=0;i cout<<a[i]<< ; cout<<endl;
点击查看答案&解析
相关试题
下列程序的执行结果为【15】。 #includ...
类模板不同于函数模板,类模板只可用 【1...
派生类构造函数的执行顺序是先执行 【12...
C++程序是从 【10】 函数开始执行的。
假定A为一个类,则语句A(A &a);为该类...