单选题:下面的条件语句中(其中S1和S2表示C语言语句),( )在功能上与其他三个语句不等价。
下面的条件语句中(其中S1和S2表示C语言语句),( )在功能上与其他三个语句不等价。
A.if (a==0) S1; else S2;
B.if (a==0) S2; else S1;
C.if (a!=0) S1; else S2;
D.if (a) S1; else S2;
答案:A
A.if (a==0) S1; else S2;
B.if (a==0) S2; else S1;
C.if (a!=0) S1; else S2;
D.if (a) S1; else S2;
答案:A