In this tutorial, we are going to write a C Program to use bitwise AND operator between the two integers in C Programming with practical program code and step-by-step full complete explanation.


C 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