问题 单项选择题

In C language,the result of the logical ()operator is 1 if the value of its operand is 0,0 if the value of its operand is non-zero. 

A.AND

B.NOT

C.OR

D.EOR

答案

参考答案:B

解析:

在C语言中,如果操作数的值为0,则逻辑运算NOT后的结果为1;如果操作数的值非0,则逻辑运算NOT后的结果为0。

选择题
问答题