下列语句中,在字符串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)
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");
相关考题:
以下程序段运行的结果为()Private Sub Form_Click( )MyDate = #7/21/1997#Print Format(MyDate, "dddd,mmmm,dd,yyyy")End SubA.21,07,1997B.21,07,21,1997C.Monday,July,21,1997D.Monday,07,21,1997
下列四种形式的循环设计中,循环次数最少的是______。A.a=5:b=8 Do a=a+1 Loop While a<bB.a=5:b=8 Do a=a+1 Loop Until a<bC.a=5:b=8 Do Until a<b b=b+1 LoopD.a=5:b=8 Do Until a>b a=a+1 Loop
设无向图G中的边的集合E={(a,b),(a,e),(a,c),(b,e),(e,d),(d,f),(f,c)},则从顶点a出发进行深度优先遍历可以得到的一种顶点序列为()。A.aedfcbB.acfebdC.aebcfdD.aedfbc
如果在立即窗口中执行以下操作(是回车键):a=8b=9print a>b则输出结果是______。A 如果在立即窗口中执行以下操作(<CR>是回车键): a=8 <CR> b=9 <CR> print a>b <GR> 则输出结果是______。A.-1B.0C.FalseD.True
对长度为n的线性表进行顺序查找,在最坏情况下需要比较的次数为( )。A.125B.11/2C.nD.n+1