OR, AND Operator

前端 未结 8 2118
臣服心动
臣服心动 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:21

    many answers above, i will try a different way:

    if you are looking for bitwise operations use only one of the marks like:

    3 & 1 //==1 - and 4 | 1 //==5 - or

提交回复
热议问题