#include
void main(){inty=5;while(y--);printf("y=%d/n",y);}
A . y=0
B . 无限循环,无结果输出
C . y=1
D . y=-1
[单选题]下列程序的输出结果为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(){ inti,j;for(j=10;j<=11;j£«£«){fo以下程序的输出结果是 ______。 #include<iostream.h> void main(){ int i,j; for(j=10;j<=11;j++){ for(i=9;i<j:j++) if(!(j%i))break; if(i>j-1)cout<<j<<" " ; } }A.11B.10C.10 11D.9
[单选题]以下程序的输出结果是 ______。includevoid main(){ char s1[]=”Hello”,s2[]="World以下程序的输出结果是 ______。 #include<iostream.h> void main(){ char s1[]=”Hello”,s2[]="World"; char *p1,*p2; int i; p1=s1; p2=s2; for(i=0;i<5;i++) if(*(pl+i)==*(p2+i)) cout<<*(p1+i); }A.H1B.
[单选题]以下程序段的输出结果是 ______。includevoid main(){ char*p[5]={"ABCD","EF","GHI以下程序段的输出结果是 ______。 #include<iostream.h> void main(){ char*p[5]={"ABCD","EF","GHI","JKL","MNOP"}; char **q=p; int i; for(i=0;i<=4;i++) cout<<q[i]; }A.ABCDEFGHIJKLB.ABCDC
[单选题]下述程序的输出结果是includevoid main(){int a[5]={2,4,6,8,10};int*p=a,**q=&p;下述程序的输出结果是 #include<stdio.h> void main() { int a[5]={2,4,6,8,10}; int*p=a,**q=&p; printf("%d,",*(p++)); pfintf("%d",**q);}A.4,4B.2,2C.4,5D.2,4
[单选题]下述程序的输出结果是()。includevoid main(){int a[5]={1,2,3,4,5};int*p=a,**q=&下述程序的输出结果是( )。 #include<stdio.h> void main() {int a[5]={1,2,3,4,5}; int*p=a,**q=&p; printf("%d",*(p++)); printf("%d",**q); }A.22B.11C.34D.12
[单选题]下述程序的输出结果是()。includevoid main(){int a[5]={1,2,3,4,5};int *p=a,**q=&p;p下述程序的输出结果是( )。 #include<stdio.h> void main() {int a[5]={1,2,3,4,5}; int *p=a,**q=&p; printf("%d,",*(p++)); printf("%d",**q);}A.2,2B.1,1C.3,4D.1,2
[单选题]如下程序的输出结果是includevoid fun(int & X,inty){intt=x;x=y;y=t;}int main(){in如下程序的输出结果是 #include<iostream> void fun(int & X,inty){intt=x;x=y;y=t;} int main( ){ int a[2]={23,42}; fun(a[1],a[0]); std::cout<<a[0]<<","<<a[1]<<std::endl; return 0; }A.42,42B.23,