int a=2,b=1,则a||!b=

来源:学生作业学帮网 编辑:学帮网 时间:2024/06/06 07:27:17

int a=2,b=1,则a||!b=

1
a||!b=a||(!b)
由于int a=2
那么逻辑或运算(||)
的结果肯定为真,
为真的话,值为1