下面程序的运行结果为( )。 #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

下面程序的运行结果为( )。 #include<iostream.h> void main { char a=’3’: switch(8) { case 3:cout<<”3”: case 2:cout<<”2”;break; default:cout<<”l”; } }

A.3

B.321

C.31

D.32


相关考题:

下面程序的运行结果为 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

下面程序的运行结果为()。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(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;}

下面程序的运行结果为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

下面的程序各自独立,请问执行下面的四个TestMemory 函数各有什么样的结果?①void GetMemory(char * p){p = (char * )malloc(100);}void TestMemory (void){char *str = NULL;GetMemory (str);strcpy(str, "hello world");prinff(str);}② char * GetMemory (void){char p[ ] = "hello world";return p;}void TestMemory (void){char * str = NULL;str = GetMemory( );printf(str);}③void GetMemory(char * * p, int num){* p = (char * )malloc(num);}void TestMemory (void){char * str = NULL;GetMemory(str, 100);strcpy( str, "hello" );printf(sir);}④void TestMemory (void){char *str = (char * )malloe(100);strepy (str, "hello" );free ( str );if(str ! = NULL){strepy( str, "world" );printf(str);}}

下面程序的运行结果是 ( ) include include main( ) { char * a=" 下面程序的运行结果是 ( ) # include<stdio.h> # include<string.h> main( ) { char * a="AbcdEf",* b="aBcD" a + +;b + +; printf("%d\n",strcmp(a,b)); }A.0B.负数C.正数D.无确定值

下面程序的运行结果为()。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

以下程序的运行结果为______。 char *c []={ "ENTER", "NEW", "POINT", "FIRST" }; char **cp []={ c+3, c+2, c+1, c}; char ***cpp=cp; main () {printf ("%s\n",**++cpp); }A.ENTERB.NEWC.POINTD.FIRST

下面程序的运行结果为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