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

admin2020-05-14  28

问题 下列程序的输出结果为(    )。
    #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

答案B

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

最新回复(0)