Question: what is the difference between logical operator and bitwise operator?
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).