#include
#include
void main()
{
int a,b,c;
clrscr();
printf(“Read the integer from keyboard(a&b):”);
scanf(“%d%d”, &a, &b);
c=a^b;
printf(“The answer afterX OR operation is (c)=%d”, c);
getch();
}
Output:
Read the integer from keyboard (a&b): 8 4
The answer after XOR operation is (c)= 10