单项选择题
下列程序的输出结果为
#include<iostream.h>
void main( )
char * a[ ] ="hello,"the"," world";
char * * pa=a;
pa++;
cout < < * pa < < endl;
A) hello B) the C) world D) hellotheworld
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下列程序的运行结果是 #include<iostream.h> class A int a; public:
A( ) a=0;
A(int aa)
a=aa;
cout < < a++;
;
void main( )
A x,y(2) ,z(3) ;
cout < < endl;A) 00
B) 23
C) 34
D) 25
点击查看答案&解析
单项选择题
下面程序的输出结果是 #include<iostream.h> class example int a; public: example(int b) a=b++; void pnnt( ) a=a+1;cout < < a < < ; void print( ) constcout < < a < < ; ; void main( ) example x(3) ; const example y(2) ; x.print( ) ; y.print( ) ; A) 2 2 B) 4 3 C) 4 2 D) 3 2
点击查看答案&解析
相关试题
下列程序的运行结果为 #include<iostrea...
下面程序的运行结果为 #include<iostrea...
下列选项,不正确的是 A) for(inta=...