OR, AND Operator

前端 未结 8 2083
臣服心动
臣服心动 2021-02-13 15:30

Newbie question. How to calculate the value of the formula A f B, where f - the binary function OR or AND?

8条回答
  •  梦如初夏
    2021-02-13 16:10

    If what interests you is bitwise operations look here for a brief tutorial : http://weblogs.asp.net/alessandro/archive/2007/10/02/bitwise-operators-in-c-or-xor-and-amp-amp-not.aspx .bitwise operation perform the same operations like the ones exemplified above they just work with binary representation (the operation applies to each individual bit of the value)

    If you want logical operation answers are already given.

提交回复
热议问题