[单选题]

下列程序的输出结果是()。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++; } re

A.hllo,test

B.Hello,Test

C.HELLO,TEST

D.hELLO,tEST

参考答案与解析:

相关试题

下列程序的输出结果是()。#includeusing namespace std