下面程序的运行结果为includevoid main(){char a=’3’;switch(a){ case’3’:cout 下面程序的运行结果为 #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

下面程序的运行结果为includevoid main(){char a=’3’;switch(a){ case’3’:cout <<"

下面程序的运行结果为 #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() {cout 下面程序的输出结果为______include<iostream.h>void main(){cout<<"Hello\b";}

下面程序的运行结果是 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(iostream.hvoid main(){char a='3‘;switch(a){case '3‘:cout ”3”;case '2’:cout ”2”;break;default:cout ”1”;}}A.32B.321C.31D.3

下面程序的运行结果为 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=1; while(i 下面程序的运行结果是#include<iostream.h>void main( ){int i=1;while(i <=8)if(++i%3!=2) continue;else cout < < i;}A.25B.36C.258D.369

下面程序的运行结果为()。includevoid main(){char a=‘3’;switch(A) {case’3’:cout 下面程序的运行结果为( )。 #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; for(i=1;i 下列程序的运行结果为______。include<iostream.h>void main( ){int i;for(i=1;i<6;i++)if(i==3)break;cout<<"i="<<i<<endl;}

阅读下面程序: include void funl(char a,char b) { char c; c=a;a=b;b=C; } void f 阅读下面程序:include<iostream.h>void funl(char a,char b){char c;c=a;a=b;b=C;}void fun2(char a,char b){char c;c=a;a=b;b=c;}void fun3(char a,char b){char c;c=a;a=b;b=C;}void main(){char a,b;a='A';b='B';funl(a,b);cout<<a<<b;a='A';b='B';fun2(a,b);cout<<a<<b;a='A';b='B';fun3(a,b);cout<<a<<b;}则该程序的输出为【 】。

以下程序的输出结果是 include void main() { inta=0,i; for(i=1 ;i 以下程序的输出结果是 #include <iostream.h> void main() { int a=0,i; for(i=1 ;i<5;i++) { switch(i) { case 0: case 3: a+=2; case 1: case 2: a+=3; default: a+=5; } } cout<<a<<end1; return; }A.31B.13C.10D.20

下列程序的运行结果为【】。 include void main(void) {int i=10;switch(i){case 9:i=i 下列程序的运行结果为【 】。include<iostream.h>void main(void){int i=10;switch(i){ case 9:i=i+1;case 10:i=i+1;case 11:i=i+1;default:i=i+1;}cout<<i<<endl;}

下面程序的运行结果为【】。 include void fun(intx=0,iot y=0) {cout 下面程序的运行结果为【 】。include<iostream.h>void fun(intx=0,iot y=0){cout<<X<<y;}Void main(){fun(5);}

下面程序的运行结果是【】。 include void main() {char s[]="9876",*p;for(p=s;p 下面程序的运行结果是【 】。include<iostream.h>void main(){char s[]="9876",*p;for(p=s;p<s+2;p++)cout<<p;}

下面程序的结果是()。includevoid main(){char *str;str="test!";cout 下面程序的结果是( )。#include<iostream.h>void main(){char *str;str="test!";cout<<str[5];}A.程序错误B.!C.'\0'D.为空字符

下面程序的运行结果为_____。 include void fun(int x=0,int y=0) { cout 下面程序的运行结果为_____。include<iostream.h>void fun(int x=0,int y=0){cout < < x < < y;}void main( ){fun(5) ;}

下面程序的运行结果为( )。 #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 a=0, i;for (i=1; i 以下程序的输出结果是 #include <iostream.h> void main () { int a=0, i; for (i=1; i<5; i++) { switch (i) { case 0 : case 3 : a+=2; case 1 : case 2 : a+=3; default : a+=5; } } cout<<a<<endl; return; }A.31B.13C.10D.20

下面程序段的运行结果是 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() {unsigned char value=127;int tota 下面程序的运行结果为【 】。include <iostream.h>void main(){unsigned char value=127;int total=100;value++;total+=value;cout<<total<<end1;}A) 227 B) 100 C) 127 D) 27

下面程序的运行结果是 ______。 include void main() { char str[]="SSSWLIA",c; int 下面程序的运行结果是 ______。include<iostream.h>void main(){char str[]="SSSWLIA",c;int k;for(k=2;(c=str[k]!='\0';k++){switch(c){case'I':++k;break;case'l';continue;default;c

下列程序运行后的输出结果是 ______。 include void main(){ int s=0,k for(k=7;k>=0 下列程序运行后的输出结果是 ______。include<iostream.h>void main(){int s=0,kfor(k=7;k>=0;k--){switch(k){case 1:case 4:case 7:s+ +;break:case 2:case 3:case 6:break;case 0:case 5:s+=2;break;}

下面程序的运行结果为 include void main( ) { for(int a =0,x=0;!xa 下面程序的运行结果为#include<iostream.h>void main( ){for(int a =0,x=0;!xa<=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

下面程序的输出结果是()。includeinclude"stdng.h"void main(){ char a[]="welcome 下面程序的输出结果是( )。 #include<iostream.h> #include"stdng.h" void main() { char a[]="welcome",b[]="well"; strcpy(a,b); cout<<a<<endl; }A.wellomeB.wellcomC.wellD.wellwe

下面程序的运行结果为( )。 #includeiostream.h void main { char a=’3’: switch(8) { case 3:cout”3”: case 2:cout”2”;break; default:cout”l”; } }A.3B.321C.31D.32

下面程序的运行结果为includeclass A{public: A( ){cout 下面程序的运行结果为 #include<iostream.h> class A { public: A( ){cout<<"1";} ~A( ){cout<<"2";} }; class B:public A { public: B( ){cout<"3";} ~B( ){cout<<"4";} }; void main( ) { BA.1234B.1324C.1342D.3142

有以下程序,程序运行的结果是 ______。includeincludevoid main(){charx 有以下程序,程序运行的结果是 ______。 #include<iostream.h> #include<string.h> void main(){ char x[]= "C++" ,y[10]= "C++" ; cout<<sizeof(x)/sizeof(char)<<“,”<<sizeof(y)/sizeof(char); }A.3 3B.4 4C.4 10D.10 10

下面程序的运行结果为( )。 include using namespace std; void main(){ 下面程序的运行结果为( )。 #include<iostream> using namespace std; void main(){ int a=1; switch(a){ case 1:cout<<"1"; case 2:cout<<"2"; break; default:cout<<"0"; } }A.12B.120C.1D.10

下面程序的结果为______。include void main() { int 3=1,b=2; bool c=1; if(a>b)||c 下面程序的结果为______。include<iostream.h>void main(){int 3=1,b=2;bool c=1;if(a>b)||c)cout<<“true”<<endl;elsecout<<“false”<<endl;}