6.Implement a program in C to perform bitwise AND on two numbers using the '&' operator.
Bitwise AND Operator (&):
The bitwise AND operator performs a logical AND operation on each pair of matching bits. If both bit value are 1, then 1 is returned; Otherwise 0 is returned.
If the corresponding bits of two operands are 1, then the result of bitwise AND is 1. If one bit of the operand is 0, the corresponding bit of the result evaluates to 0.
In C Programming Language, the bitwise AND operator is represented by the symbol &.
Let us understand the bitwise AND operation on two integers 5 and 3.
5 = 0101 (In Binary)
3 = 0011 (In Binary)
Bit Operation of 5 and 3
0101
& 0011
________
0001 = 1 (In decimal)