Sample:

Find the XOR of two number without using XOR operator and loop.


 

Int main()

{

int x=3,y=5;

int ans = (x|y) & (~x | ~y);

printf(“%d”,ans);

}