单项选择题

下列程序的输出结果为
#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
相关试题
  • 类模板的使用实际上是将类模板实例化成一个...
  • 表达式operator+(x, y) 还可以表示为...
  • 继承的方式有公有继承、私有继承和 3种。
  • C++语言提供的基本控制结构可以分为3种...
  • C++语句const char * const p= he...