Question: what is the difference between logical and bitwise operators?
Answer: Logical operators take as input(s) boolean values, and provide as output(s) boolean values. Bitwise operators take as input(s) integer values (whose bits are the data), and provide as output(s) integer values (whose bits are the data).