相关疑难解决方法(0)

逻辑和条件AND之间的区别是什么,在C#中是OR?

可能重复:
|之间的差异是什么 和|| 还是运营商?

逻辑AND和OR:

(x & y)
(x | y)
Run Code Online (Sandbox Code Playgroud)

条件AND和OR:

(x && y)
(x || y)
Run Code Online (Sandbox Code Playgroud)

到目前为止,我只知道条件操作数.我知道它的作用以及如何在if语句中应用它.但逻辑操作数的目的是什么?

c# conditional-operator logical-operators

47
推荐指数
3
解决办法
8万
查看次数