City Suvidha...your one stop Search

C Programs

Go Back to List

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



 

If any of you want to submit your programs and contribute to site please mail us at:

citysuvidha@gmail.com

  Click here to have a look at  List of programs

You can download all the programs in a zip file also. For this you have to do one thing. Just register at the citysuvidha forum  and start any thread of any topic.  Once you start the thread and put your request, admin will automatically send you the desired zip file.