下列程序的输出结果是( )。
#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,test B:Hello,Test C:HELLO,TEST D:hELLO,tEST

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

retum 0;

A:hllo,test B:Hello,Test C:HELLO,TEST D:hELLO,tEST

下列程序的输出结果是( )。
#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,test B:Hello,Test C:HELLO,TEST D:hELLO,tEST

下列程序的输出结果是( )。
#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,test B:Hello,Test C:HELLO,TEST D:hELLO,tEST

下列程序的输出结果是( )。 #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,test B:Hello,Test C:HELLO,TEST D:hELLO,tEST

下列程序的输出结果是( )。 #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,test B:Hello,Test C:HELLO,TEST D:hELLO,tEST

下列程序的输出结果是( )。 #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,test B:Hello,Test C:HELLO,TEST D:hELLO,tEST

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

A:hllo,test B:Hello,Test C:HELLO,TEST D:hELLO,tEST

已知程序中已经定义了函数test,其原型是int test(int,int,int);,则下列重载形式中正确的是

A:char test (int,int,in; B:double test(int,int,doubl; C:int test(int,int,int=; D:float test(int,int,float=3.5;

微信扫码获取答案解析
下载APP查看答案解析