网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
下列程序的输出结果为includevoid main( ){char * a[ ]={"hello","the","world"};c
下列程序的输出结果为 #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
参考答案
更多 “ 下列程序的输出结果为includevoid main( ){char * a[ ]={"hello","the","world"};c 下列程序的输出结果为 #include<iostream.h> void main( ) { char * a[ ]={"hello","the","world"}; char * * pa=a; pa++; cout <<*pa<<end1; }A.helloB.theC.worldD.hellotheworld ” 相关考题
考题
下列程序的输出结果是 inClUde using namespace std; intmain() { Char a[]="HellO,W
下列程序的输出结果是#inClUde<iostream>using namespace std;intmain(){Char a[]="HellO,World";Char*ptr=a;while(*ptr){if(*ptr>='a' *ptr <='Z')cout<<char(*ptr+'A' -'a');else cout<<*ptr;ptr++;}retur0;}A.HELLO,WORLDB.Hello,worldC.hELLO,wORLDD.hellO,world
考题
下列程序的输出结果是______。includeusing namespace std;int main() {char a []="He
下列程序的输出结果是______。 #include<iostream> using namespace std; int main() { char a []="Hello, World"; char *ptr=a; while (* ptr) { if(*ptr)= 'a' *ptr' <= 'z') cout << char(*ptr+'A'-'a'); else cout << *ptr; ptr++; } return 0; }A.HELLO,WORLDB.Hello,WorldC.hELLO, wORLDD.hello,world
考题
下列程序的输出结果为( )。 #include (iostream) using namespace std; void main( ) char,a[ ] = { "hello" ," the" ," world" }; char * * pa = a: pa + +; cout << * pa << ENDL; }A.helloB.theC.worldD.hellotheworld
考题
以下程序的输出结果是 ______。includeincludevoidmain(){char *p1=",he
以下程序的输出结果是 ______。 #include<iostream.h> #include<string.h> void main(){ char *p1=",hello",*p2="world!",str[50]:"Hii"; strcpy(str+2,p1); strcat(str,p2); cout<<str; }A.Hii,hello world!B.hello world!C.ii,hello world!D.Hi,hello world!
考题
下列程序的输出结果为 include void main( ) { char * a[ ] ={"hello},"the"," wo
下列程序的输出结果为#include<iostream.h>void main( ){char * a[ ] ={"hello},"the"," world"};char * * pa=a;pa++;cout < < * pa < < endl;}A.helloB.theC.worldD.hellotheworld
考题
下列程序的输出结果为includevoid main(){char*a[]={"hello","the","world"};char*
下列程序的输出结果为 #include<iostream.h> void main() { char*a[]={"hello","the","world"}; char**pa=a; pa++; cout<<*pa<<end1; }A.helloB.theC.worldD.hello the world
考题
下列程序的输出结果是()。includeusing namespace std;int main(){char a[]=""Hello,W
下列程序的输出结果是( )。 #include<iostream> using namespace std; int main() { char a[]=""Hello,World"; char*ptr = a; while(*ptr) { if(*ptr>= 'a' *ptr<='z') cout<<char(*ptr+'A'-'a'); else cout<<*ptr; ptr++; } retur 0; }A.HELLO, WORLDB.Hello, WorldC.HELLO, worldD.hello, world
考题
下列程序的输出结果是 include usingnamespacestd; int main () {chara []="Hello,W
下列程序的输出结果是 #include <iostream> using namespace std; int main () { char a [] = "Hello,World": char*ptr = a; while (*ptr) { if(*ptr>= 'a' *ptr <='z' cout<<char{*ptr+'A'-'a'); else cout<<*ptr; ptr++; } return 0; }A. HELLO. WORLDB. Hello, WorldC. hELLO, wORLDD. hello, world
考题
下列程序的输出结果为#includevoid main(){char,a[]={”hello",”the",”world”};char**pa=a:pa++;cout*pa}A.helloB.theC.worldD.hellotheworld
热门标签
最新试卷