Showing posts with label Program to use bitwise AND operator between the two integers.. Show all posts
Showing posts with label Program to use bitwise AND operator between the two integers.. Show all posts

Program to use bitwise AND operator between the two integers.

Program to use bitwise AND operator between the two integers.
#include<stdio.h>
#include<conio.h>
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