下面程序的运行结果为
#include<iostream.h>
void main( )
{
for(int a =0,x=0;!x&&a<=10;a++)
{
a++;
}
cout < < a < < endl;
}
A.10
B.11
C.12
D.0
[单选题]下面程序的运行结果是 include void main( ) { int i=1; while(i <=8) if(£«£«i%3!下面程序的运行结果是#include<iostream.h>void main( ){int i=1;while(i <=8)if(++i%3!=2) continue;else cout < < i;}A.25B.36C.258D.369
[单选题]下面程序的运行结果为 include void main( ) {char a='3'; switch(a) { case'3':下面程序的运行结果为#include<iostream.h>void main( ){char a='3';switch(a){case'3':cout < <"3";case'2':cout < < "2";break;default:cout < <"1";}}A.3B.321C.31D.32
[单选题]下面程序输出的结果是 include void main( ) { int i; int a[3][3]={1,2,下面程序输出的结果是 #include<iostream.h> void main( ) { int i; int a[3][3]={1,2,3,4,5,6,7,8,9}; for(i=0;i<3;i++) cout<<a[i][i]<<" ";}A.1 5 9B.7 5 3C.3 5 7D.5 9 1
[单选题]下列程序的运行结果为 include void main( ) { int a=2; int b=a£«1; cout < < a£¯b下列程序的运行结果为#include<iostream.h>void main( ){int a=2;int b=a+1;cout < < a/b < < endl;}A.0.66667B.0C.0.7D.0.66666666…
[单选题]下列程序的运行结果为()。include void main(){int a=2;int b=a£«1;cou<下列程序的运行结果为( )。 #include<iostream.h> void main() { int a=2; int b=a+1; cou<<afo<<endl; }A.0.66667B.0C.0.7D.0.66666666
[单选题]下面程序的运行结果是 include Void main( ) { int num=1; int &ref=num;ref=下面程序的运行结果是#include<iostream.h>Void main( ){int num=1;int &ref=num;ref=ref+2;cout < < num;num=num+3;cout < < ref < <endl;}A.13B.16C.36D.33
[单选题]下面程序段的运行结果是 include void main( ) {char*s="abcde"; S£«=2;下面程序段的运行结果是 #include<iostream.h> void main( ) { char*s="abcde"; S+=2; cout<<&s;}A.cdeB.字符'c'C.字符'c'的地址D.无确定的输出结果
[主观题]下面程序的输出结果为______ include void main() {cout<<"Hello/b"; }下面程序的输出结果为______include<iostream.h>void main(){cout<<"Hello/b";}
[单选题]下列程序的运行结果为include void main( ){ int a=2; int b=a£«l; cout < < a£¯b下列程序的运行结果为 #include < iostream.h > void main( ) { int a=2; int b=a+l; cout < < a/b < < end1; }A.0.66667B.0C.0.7D.0.66666666…
[主观题]阅读下面程序: include void main() { int i,j,row=0,column=0,m; static int a[3]阅读下面程序:include <iostream.h>void main(){int i,j,row=0,column=0,m;static int a[3][3]={ 100,28,72,-30,2,-100};m=a[0][0];for (i=0;i<3;i++)for (j=0;j<3;j++)if (a[i][j]<m){m=a[i][j];ro