Question: what is the difference between logical or and bitwise or?
Answer: Logical operators are used for booleans, since true equals 1 and false equals 0. If you use (binary) numbers other than 1 and 0, then any number that's not zero becomes a one. ... On the other hand, bitwise operators perform an operation on every single bit of the two operands (hence the term "bitwise").