A-A+

下列程序的输出结果为()。 #include (iostream) using namesp

2022-08-06 06:15:55 问答库 阅读 176 次

问题详情

下列程序的输出结果为()。 #include (iostream) using namespace std; void main() char,a[ ] = { "hello" ," the" ," world" }; char * * pa = a: pa + +; cout << * pa << ENDL; }
A.hello
B.the
C.world
D.hellotheworld请帮忙给出正确答案和分析,谢谢!

参考答案

正确答案:B
解析:指针与数组对应关系,*p++访问数组第二个元素。

考点:结果,程序