题目
下列程序的输出结果为
#include
void main()
{
char,a[]={”hello",”the",”world”};
char**pa=a:
pa++;
cout<<*pa<
}
A.hello
B.the
C.world
D.hellotheworld
第1题
下列程序的输出结果为()。 #include<iostream.h> #include<iomanip.h> voidmain() { cout.precision(4); cout<<123.127; cout<<””<<123.46: }
A.123.1 123.4
B.123.1 123.46
C.123.127 123.46
D.123.1123.4
第2题
下列程序的输出结果为()。 #include<iostream.h> #include<iomanip.h> void main() { cout.precision(4); cout<<123.127 cout<<" "<<123.46; }
A.123.1 123.4
B.123.1 123.46
C.123.127 123.46
D.123.1123.4
第3题
下列程序的输出结果为()。 #include<iostream.h> void main { char*a[]={”hell0”,”the”,”world”}; char** pa = a: pa++; cout<<*pa<<endl: }
A.hello
B.the
C.world
D.hellotheworld
第4题
下列程序的输出结果为 #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
第5题
当输入“Thank you”时下列程序的输出结果为()。 #include<<iostream.h> #include<iomanip.h> void main() { char line[80]; cin.getline(line,sizeof(80),'k'); cout<<line; }
A.Tha
B.Thank you
C.Thank
D.以上结果都不对
第6题
下列程序的输出结果为 #include<iostream.h> void main() { char*a[]={"hello","the","world"}; char**pa=a; pa++; cout<<*pa<<end1; }
A.hello
B.the
C.world
D.hello the world
第7题
下列程序的输出结果为()。 #include<iostream.h) class TestClass { public: TestClass(){val++;} static,int val; }; int TestClass::val=0; void main() { TestClass cs1; cout<<csl.val<<““; TestClass cs2; TestClass cs3,cs4; co
A.03
B.13
C.14
D.24
第8题
当输入“Thank you”时下列程序的输出结果为()。 #include<iostream.h> #include<iomanip.h> void main() { char line[80]; cin.getline(line,sizeof(80),'k'); cout<<line; }
A.Tha
B.Thank you
C.Thank
D.以上结果都不对
第9题
A.hello
B.the
C.world
D.hellotheworld
第10题
下列程序的输出结果为()。 #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
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!