单项选择题

下列程序的输出结果为
#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> int min(int a, int b) if(a<b) retum a; else return b; return 0; void main( ) cout < < min(1,min(2,3) ) < < endl; A) 0 B) 1 C) 2 D) 3
单项选择题
下面程序的输出结果是 #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...
  • 下面程序的运行结果为 #include<iostrea...