下述语句中,在字符串s1和s2相等时显示"they are Equal"的是( )。
A: A) if(*s1=*s2)
B: puts("they are Equal");
C: B) if(!strcmp(s1,s2))
D: puts("they are Equal");
E: C) if(s1==s2)
F: puts("they are Equal");
G: D) if(strcmp(s1,s2))
H: puts("they are Equal");
A: A) if(*s1=*s2)
B: puts("they are Equal");
C: B) if(!strcmp(s1,s2))
D: puts("they are Equal");
E: C) if(s1==s2)
F: puts("they are Equal");
G: D) if(strcmp(s1,s2))
H: puts("they are Equal");
举一反三
- 下述语句中,在字符串s1和s2相等时显示"they are Equal"的是( )。 A: A) if(*s1=*s2) B: puts("they are Equal"); C: B) if(!strcmp(s1,s2)) D: puts("they are Equal"); E: C) if(s1==s2) F: puts("they are Equal"); G: D) if(strcmp(s1,s2)) H: 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");
- 下述语句中,在字符串sl和s2相等时显示“they are Equal”的是( )。 A: A) if(*s1==*s2) B: puts("they are Equal"); C: B) if(!strcmp(s1,s2)) D: puts("they are Equal"); E: C) if(s1==s2) F: Puts("they are Equal"); G: D) if(strcmp(s1,s2)) H: puts("they are Equal”);
- 下列语句中,在字符串s1和s2相等时显示"they are Equal"的是( )。 A: A) if(*s1==*s2) B: puts("they are Equal"); C: B) if(!strcmp(s1,s2)) D: puts("they are Equal"); E: C) if(s1==s2) F: Puts("they are Equal"); G: D) if(strcmp(s1,s2) ) H: puts("they are Equal");