下面程序的运行结果为( )。 #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
[单选题]下面程序段的运行结果是()。includevoid main(){char str[]="ABC",*p=str;pfintf("%d/n下面程序段的运行结果是( )。 #include<stdio.h> void main() {char str[]="ABC",*p=str; pfintf("%d/n",*(p+3)); }A.67B.0C.字符'C'的地址D.字符'C'
[单选题]下面程序的运行结果为includevoid main( ){ for(int a=0,x=0;!x&&a<=10;a£«下面程序的运行结果为 #include<iostream.h> void main( ) { for(int a=0,x=0;! x&&a<=10;a++) { a++; } cout<<a<<end1; }A.10B.11C.12D.0
[单选题]下列程序段的运行结果是()。includevoid main(){ char str[]="ABC",*p=str;printf("%d/下列程序段的运行结果是( )。#include<stdio.h>void main(){ char str[]="ABC",*p=str; printf("%d/n",*(p+3));}A.67B.0C.字符'C'的地址D.字符'C'
[单选题]下列程序的输出结果为includevoid main( ){char * a[ ]={"hello","the","world"};c下列程序的输出结果为 #include<iostream.h> void main( ) { char * a[ ]={"hello","the","world"}; char * * pa=a; pa++; cout <<*pa<<end1; }A.helloB.theC.worldD.hellotheworld
[单选题]下列程序的输出结果为includevoid main(){char*a[]={"hello","the","world"};char*下列程序的输出结果为 #include<iostream.h> void main() { char*a[]={"hello","the","world"}; char**pa=a; pa++; cout<<*pa<<end1; }A.helloB.theC.worldD.hello the world
[单选题]下列程序的输出结果为includevoid main( ){char * a[ ]={"hello","the","world"};c下列程序的输出结果为 #include<iostream.h> void main( ) { char * a[ ]={"hello","the","world"}; char * * pa=a; pa++; cout <<*pa<<end1; }A.helloB.theC.worldD.hellotheworld
[单选题]下列程序段的运行结果是()。includevoid main(){char str[]="ABC",*p=str;printf("%d/n下列程序段的运行结果是( )。 #include<stdio.h> void main() { char str[]="ABC",*p=str; printf("%d/n",*(p+3)); }A.67B.0C.字符'C'的地址D.字符'C'
[单选题]下面程序的运行结果为 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 del(char*s){int i,j;char *a;a=s;for(i=0,j=0;a下面程序的运行结果是( )。 #include<stdio.h> void del(char*s) { int i,j; char *a; a=s; for(i=0,j=0;a[i]!='/0';i++) { if(a[i]>='0'&&a[i]<='9') { s[j]=a[i]; j++; } s[j]='/0'; }}
[单选题]下述程序的输出结果是()。includevoid main(){char a=3,b=1;char c=a^b<<2;printf("%d"下述程序的输出结果是( )。 #include<stdio.h> void main() {char a=3,b=1; char c=a^b<<2; printf("%d",C; }A.1B.7C.3D.2