Tuesday, June 28, 2011

C Program to use Bitwise AND Operator between 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();
}

1 comment: