下列程序的输出结果是【 】#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,WORLD
B.Hello,world
C.hELLO,wORLD
D.hello,world