DWQA QuestionsWhat is difference between & and &&?
admin_alan4v3v Staff asked 2 years ago

& is a bit wise operator and compares each operand bit wise. Where as && is a logical AND operator and operates on boolean operands. If each the operands are authentic, then the condition becomes authentic in any other case it’s miles false. Assume boolean variable A holds authentic and variable B holds false then (A && B) is fake.