题目内容:
下列程序的输出结果是( )。 #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
参考答案:
答案解析: