下列程序的输出结果为 #include<iostream.h> void main( ) { char * a[ ]={"hello","the","world"}; char * * pa=a;

admin2010-06-06  30

问题 下列程序的输出结果为    #include<iostream.h>    void main( )    {        char * a[ ]={"hello","the","world"};        char * * pa=a;        pa++;        cout <<*pa<<end1;    }

选项 A、hello
B、the
C、world
D、hellotheworld

答案2

解析 本题主要考查的是指针数组和指向指针的指针之间的关系,其中a是指针数组,pa是指向指针数组行的指针,所以pa自加1相当于指向下一行。
转载请注明原文地址:https://jikaoti.com/ti/pCW0FFFM
0

最新回复(0)