A-A+
下列程序的输出结果为 #include<iostream.h> void main() {
问题详情
下列程序的输出结果为
#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相当于指向下一行。