网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

下列程序的输出结果是( )。 #included<iostream> usingnamespacestd; intmain() { chara[]="Hell0,Test"; char*p=a; while(*p) { if(*p>=a&&*p<=z) cout<<char(*p+A-a); elsecout<<*P; p++; } return0; }

A.hello,test

B.Hello,Test

C.HELLO,TEST

D.hELLO,tEST


参考答案

更多 “ 下列程序的输出结果是( )。 #includediostream usingnamespacestd; intmain() { chara[]="Hell0,Test"; char*p=a; while(*p) { if(*p=a&&*p=z) coutchar(*p+A-a); elsecout*P; p++; } return0; }A.hello,testB.Hello,TestC.HELLO,TESTD.hELLO,tEST ” 相关考题
考题 下列程序的输出结果是 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

考题 若有以下程序段: include using namespace std; int main() {char*p="abcdefgh",*r;l 若有以下程序段:include <iostream>using namespace std;int main(){char*p="abcdefgh",*r;long*q;q=(long*)p;q++;r=(char*)q;cout<<r<<end1;return 0;}该程序的输出结果是【 】。

考题 下列程序的输出结果是()。includeusing namespace std;int main()于chara[]=”Hello,Te 下列程序的输出结果是( )。 #include<iostream> using namespace std; int main() 于 chara[]=”Hello,Test”; Char*p=a; while(*p) { if(*p)=’a’*p(=’z’) cout<<char(*p+’A’-’a’); else cout<<*p; p++; } return 0; }A.hello,testB.Hello,TestC.HELLO,TESTD.hELLO,tEST

考题 下列程序的输出结果是______。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 using namespace std; int main() { 下列程序的输出结果是( )。 #include<iostream> using namespace std; int main() { char a[]="Hello,Test"; char *p=a; while(*p) { if(*p>='a'*p<='z') cout<<char(*p+'A'-'a'); else cout<<*p; p++; } return 0; }A.hello,testB.Hello,TestC.HELLO,TESTD.hELLO,tEST

考题 下列程序的输出结果是()。includeusing namespace std;int main(){char a[]="Hello,Te 下列程序的输出结果是( )。 #include<iostream> using namespace std; int main() { char a[]="Hello,Test"; char *p=a; while(*p) { if(*p>='a'*p<='’z') cout<<char(*p+'A'-'a'); else cout<<*p; p++; } return 0; }A.hello,testB.Hello,TestC.HELLO,TESTD.hELLO,tEST

考题 下列程序的输出结果是()。includeusing namespace std;int main(){char a[]="Hello,Te 下列程序的输出结果是( )。 #include<iostream> using namespace std; int main() { char a[]="Hello,Test"; char*p=a; while(*p) { if(*p>='a'*p<='z') cout<<char(*p+'A'-'a'); else cout<<*p; p++; } reA.hllo,testB.Hello,TestC.HELLO,TESTD.hELLO,tEST

考题 下面程序输出的结果是()。includeusing namespace std;int fuc (char *x);int main(){ 下面程序输出的结果是( )。 #include<iostream> using namespace std; int fuc (char *x); int main(){ cout<<fuc("hello")<<endl; return 0; } int fuc(char *x){ char *y=x; while(*y! ='\0')y++; return(y-x); }A.5B.6C.0D.语法错误,不能输出结果

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