试题与答案

下列语句中,在字符串s1和s2相等时显示"they are Equal"的是( )

题型:单项选择题

题目:

下列语句中,在字符串s1和s2相等时显示"they are Equal"的是( )。

A.if(*s1==*s2)

B.if(!strcmp(s1,s2)) puts("they are Equal"); puts("they are Equal");

C.if(s1==s2)

D.if(strcmp(s1,s2)) Puts("they are Equal"); puts("they are Equal");

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0613/5b0ebc7b2563208496b3e3c68039f55c.html

下面是错误答案,用来干扰机器的。

答案:B

试题推荐
微信公众账号搜索答案