PROGRAM TO USE BITWISE AND OPERATOR BETWEEN TWO INTEGERS

/*PROGRAM TO USE BITWISE AND OPERATOR BETWEEN TWO INTEGERS*/
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,d=0;
clrscr();
printf(“Enter any two integers: “);
scanf(“%d%d”,&a,&b);
d=a&b;        //BITWISE AND OPERATION
printf(“After using bitwise AND on %d and %d, the result is: %d”,a,b,d);
getch();
}

Leave a Reply

Your email address will not be published. Required fields are marked *