单选题 C语言
题号 #3277187

以下选项中正确的语句组是(   )。

进入在线模考

参考答案

B

答案解析

A选项去掉大括号就正确了;c选项和D选项应在定义时赋初值。因此B选项正确。

你可能感兴趣的试题

A.if(strcmp(sl,s2)!=0)puts(s2);
B.if(strcmp(sl,s2)!=0)puts(s1);
C.if(strcmp(sl,s2)==1)puts(s1);
D.if(strcmp(sl,s2)==0)puts(s1);
找试题 · 找答案 · 找资料 在线模考