I know that the Bitwise operators &, | and ^ are EITHER bitwise operators OR logical operators ... depending on the types of the operands.
If the operands are integers, the operators are bitwise. If they are booleans, then the operators are logical.
Then why there are Logical operators &&,|| and! ? I believe there will be some situations where we can use only logical operator, and so they are.
So, can anyone explain such a situation? Or any advantage over bitwise ops.