【发布时间】:2011-03-10 09:48:01
【问题描述】:
可能重复:
What is the diffference between the | and || or operators?
逻辑与和或:
(x & y)
(x | y)
条件 AND 和 OR:
(x && y)
(x || y)
到目前为止,我只知道条件操作数。我知道它的作用以及如何在 if 语句中应用它。但是逻辑操作数的目的是什么?
【问题讨论】:
标签: c# conditional-operator logical-operators