下面程序的运行结果为
#include<iostream.h>
void main( )
{
char a='3';
switch(a)
{
case'3':cout < <"3";
case'2':cout < < "2";break;
default:cout < <"1";
}
}
A.3
B.321
C.31
D.32
[单选题]下面程序段的运行结果是 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( ) { for(int a =0,x=0;!x&&a<=下面程序的运行结果为#include<iostream.h>void main( ){for(int a =0,x=0;!x&&a<=10;a++){a++;}cout < < a < < endl;}A.10B.11C.12D.0
[单选题]下列程序的输出结果为 include void main( ) { char * a[ ] ={"hello},"the"," wo下列程序的输出结果为#include<iostream.h>void main( ){char * a[ ] ={"hello},"the"," world"};char * * pa=a;pa++;cout < < * pa < < endl;}A.helloB.theC.worldD.hellotheworld
[单选题]下面程序的输出结果为______。 include main() { char p1[7]="abc",p2[]="ABC",str[50下面程序的输出结果为______。 #include<string.h> main() { char p1[7]="abc",p2[]="ABC",str[50]="xyz"; strcpy(str,strcat(p1,p2)); printf("%s",str); }A.xyzabcABCB.abcABCC.xyzabcD.xyzAB
[单选题]下列程序的运行结果为 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( ) { 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() {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…