[单选题]

下述语句中,在字符串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"的是()

[单选题]下述语句中,在字符串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”的是()

    [单选题]下述语句中,在字符串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”);

  • 查看答案
  • 下列语句中,在字符串s1和s2相等时显示“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”的是()

    [单选题]下列语句中,在字符串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");

  • 查看答案
  • 下列语句中,在字符串s1和s2相等时显示"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"的是()

    [单选题]下列语句中,在字符串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");

  • 查看答案
  • 若REPLACE(S,S1,S2)表示用字符串S2替换字符串S中的子串S1的操作

    [单选题]若REPLACE(S,S1,S2)表示用字符串S2替换字符串S中的子串S1的操作,则对于S=“Beijing&Nanjing”,S1=“Beijing”,S2=“Shanghai”,REPLACE(S,S1,S2)=()。A . “Nanjing&Shanghai”B . “Nanjing&Nanjing”C . “ShanghaiNanjing”D . “Shanghai&Nanjing&rdquo

  • 查看答案
  • 判断字符串s1是否大于字符串s2,应该使用( )。

    [单选题]判断字符串s1是否大于字符串s2,应该使用( )。A.if(strcmp(s1,s2)s2)C.if(strcmp(s2,s1判断字符串s1是否大于字符串s2,应该使用( )。A.if(strcmp(s1,s2)<0)B.if(s1>s2)C.if(strcmp(s2,s1)<0)D.if(strcmp(s1,s2))

  • 查看答案
  • 判断字符串s1是否大于字符串s2,应该使用()。

    [单选题]判断字符串s1是否大于字符串s2,应该使用()。A.if(strcmp(s1,s2)s2)C.if(strcmp(s2,s1)判断字符串s1是否大于字符串s2,应该使用( )。A.if(strcmp(s1,s2)<0)B.if(s1>s2)C.if(strcmp(s2,s1)<0)D.if(strcmp(s1,s2))

  • 查看答案
  • 为了判断两个字符串s1和s2是否相等,应当使用()

    [单选题]为了判断两个字符串s1和s2是否相等,应当使用()A . if(s1==s2)B . if(s1=s2)C . if(strcmp(s1,s2))D . if(strcmp(s1,s2)==0)

  • 查看答案
  • 下述语句中,在字符串s1和s2相等时显示”they are Equal”的是(