问题
单项选择题
下列程序的输出结果为()
#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
答案
参考答案:B
解析:
本题主要考查的是指针数组和指向指针的指针之间的关系,其中a是指针数组,pa是指向指针数组行的指针,所以pa自加1相当于指向下一行。