下列语句中,在字符串s1和s2相等时显示“they are Equal”的是( )。A.if(*s1==*s2) puts("they are Equal");B.if(!strcmp(s1,s2)) puts("they are Equal");C.if(s1==s2) Puts("they are Equal");D.if(strcmp(s1,s2)) puts("they are Equal");

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

A.if(*s1==*s2) puts("they are Equal");

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

C.if(s1==s2) Puts("they are Equal");

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


相关考题:

下列语句中,在字符串s1和s2相等时显示"they are Equal"的是( )。A.if(*s1==*s2) puts("they are Equal");B.if(!strcmp(s1,s2)) puts("they are Equal");C.if(s1==s2) Puts("they are Equal");D.if(strcmp(s1,s2) ) puts("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");

下述语句中,在字符串s1和s2相等时显示"they are Equal"的是( )。A.if(*s1=*s2) puts("they are Equal");B.if(!strcmp(s1,s2)) puts("they are Equal");C.if(s1==s2) puts("they are Equal");D.if(strcmp(s1,s2)) puts("they are Equal");

下述语句中,在字符串sl和s2相等时显示“they are Equal”的是( )。A.if(*s1==*s2) puts("they are Equal");B.if(!strcmp(s1,s2)) puts("they are Equal");C.if(s1==s2) Puts("they are Equal");D.if(strcmp(s1,s2)) puts("they are Equal”);

若有定义语句:char *s1="OK",*s2="ok";,以下选项中,能够输出"OK"的语句是A.if(strcmp(s1,s2)==0) puts(s1);B.if(strcmp(s1,s2)!=0) puts(s2);C.if(strcmp(s1,s2)==1) puts(s1);D.if(strcmp(s1,s2)!=0) puts(s1);

下列语句中,在字符串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"); pros("they are Equal");

试题30若有定义语句: char *s1=”OK”, *s2=”ok”; , 以下选项中,能够输出”OK”的语句是()A.if(strcmp(s1,s2)==0) puts(s1);B.if(strcmp(s1,s2)!=0) puts(s2);C.if(strcmp(s1,s2)==1) puts(s1);D.if(strcmp(s1,s2)!=0) puts(s1);

下述语句中,在字符串s1和s2相等时显示”they are Equal”的是( )。A)if(*s1==*s2)puts("they are Equal");B)if(!strcmp(s1,s2))puts("they are Equal");C)if(s1=s2)puts(”they are Equal”);D)if(strcmp(s1,s2))puts(”they are Equal”);

下述语句中,()可以在字符串s1和s2相等时显示"Equal."。A.if(!strcmp(s1,s2)) puts(“Equal.”);B.if(s1==s2) puts(“Equal.”)C.if(*s1==*s2) puts(“Equal.”)D.if(strcmp(s1,s2)) puts(“Equal.”);