KodeGod.com

012. Technical interview question: Check two numbers are equal without using arithmetic or relational operators

int main()
{
  int x = 10;
  int y = 10;
  if (!(x ^ y))
     printf(" x is equal to y ");
  else
     printf(" x is not equal to y ");
return 0;
}