Program to use bitwise AND operator between the two integers.

इस प्रोग्राम में हम सीखेगे कि C लैंग्वेज में किस प्रकार हम bitwise AND ऑपरेटर का उपयोग कर सकते है | इसके लिए हम यूजर से दो इन्टिजर संख्याओ को इनपुट करा लेगे और बिट वाइज एंड ऑपरेटर का उपयोग करके रिजल्ट प्राप्त कर लेगे |

#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:- 12
5
The Answer after use bitwise AND is: 4


error: Content is protected !!