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;
}
Watch all videos like this

Leave a Reply

Your email address will not be published. Required fields are marked *