& (bitwise AND) Takes two numbers as operands and does AND on every bit of two numbers. The result of AND is 1 only if both bits are 1.
#include
#include
void main()
{
int a,b,c;
clrscr();
printf(“Read the integers from keyboard:- ”);
scanf(“%d %d”,&a,&b);
c=a&b;
printf(“\nThe Answer after ANDing is: %d ”,c);
getch();
}
**********************************
Output:
Read the integers from keyboard:- 8 4
The Answer after ANDing is: 0
**********************************