A.if(a==0)s2;elses1;
B.if(a)s1;elses2;
C.if(a!=0)s1;elses2;
D.if(a==0)s1;elses2;
[单选题]语句S1、S2和S3按照下面的属性执行:先执行语句S1,再执行语句S2,最后执行语句S3,则这样的执行顺序属于编程中的( )A.顺序结构B.选择结构C.循环结构D.嵌套结构
[单选题]下列语句中,在字符串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"); pros("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”);
[单选题]试题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相等时显示"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");
[单选题]下列条件语句中,功能与其他语句不同的是A.if(A) printf("%d/n",x); else printf("%d/n",y);B.if(a==0) printf("%d/n",y); else printf("%d/n",x);C.if(a!=0) printf("%d/n",x); else printf("%d/n",y);D.if(a==0) printf("%d/n",x); else printf("%d/n",y);
[单选题]下列条件语句中,功能与其他语句不同的是A.if(a)printf("%d/n",x); else printf("%d/n",y);B.if(a==0)printf("%d/n",y); else printf("%d/n",x);C.if (a!=0)printf("%d/n",x); else printf("%d/n",y);D.if(a==0)printf("%d/n",x); else printf("%d/n",y);
[单选题]下列条件语句中,功能与其他语句不同的是 ______。A.if (a) printf("%d/n",x);else printf("%d/n",y);B.if(a==0) printf("%d/n",y);else printf("%d/n",x);C.if(a!=0)printf("%d/n",x);else printf("%d/n",y);D.if(a= =0)printf("%d/n",x);else printf("%d/n",y);