logo

AND operator


The bitwise AND operator is a fundamental operator in computer science and digital electronics,
used to manipulate data at the bit level.
This operator is represented by the symbol & in most programming languages.
It performs a binary AND operation on two binary numbers,
comparing corresponding bits and producing a new binary number as the result.

How It Works:

The bitwise AND operator works by comparing each bit of its operands.
If both bits at a given position are 1, the result at that position is 1;
otherwise, it is 0.

Truth table:

BITWISE AND(&) OPERATOR TRUETH TABLE
Inputs
Input A Input B Output
0 0 0
1 0 0
0 1 0
1 1 1