题目内容 (请给出正确答案)
[主观题]

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

下述语句中,在字符串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 …”相关的问题

第1题

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

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

点击查看答案

第2题

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

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

点击查看答案

第3题

下述语句中,()可以在字符串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.”);

点击查看答案

第4题

下述语句中,可以在字符串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.”);

点击查看答案

第5题

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

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

点击查看答案

第6题

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

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

点击查看答案

第7题

下列语句中,在字符串s1和s2相等时显示"they are Equal"的是()。A.if(*s1==*s2) puts("they are Eq

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

点击查看答案

第8题

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

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

点击查看答案

第9题

以下语句中,:当字符串s1和s2相等时,能够输出"OK"的是()。

A.if(s1==s2)printf("OK")

B.if(s1[0]==s2[0])printf("OK")

C.if(strcmp(s1,s2))puts("OK")

D.if(!strcmp(s1,s2))puts("OK")

点击查看答案

第10题

下述程序用来输出两个字符串前7个字符中对应相等的字符及其位置号,则程序空白上应该填写的是()。

下述程序用来输出两个字符串前7个字符中对应相等的字符及其位置号,则程序空白上应该填写的是()。 #include<stdio.h> main { char s1[]="chinese",s2[]="japanese"; int i; for(i=0;s1[i]=\0&&s2[i]!=\0;i++) if(s1[i]==s2[i]&&i<7) _____________; }

A.putchar(s2[i]);putchar(i)

B.puts(s1[i],i)

C.printf("%c%d\n",s2[i]。i)

D.printf("%C",s1[]);printf("%d\n",i)

点击查看答案
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
温馨提示
每个试题只能免费做一次,如需多次做题,请购买搜题卡
立即购买
稍后再说
警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

微信搜一搜
赏学吧
点击打开微信
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反赏学吧购买须知被冻结。您可在“赏学吧”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
微信搜一搜
赏学吧
点击打开微信