Check if two integers are equal without using equality operator or any boolean operator or even predefined functions to check for equality .
Check if two Integers are equal

@karnamit2105
How about this one:def checkEqual(a, b): try: c = 1 / (a  b) except: return True return False

@xidui That was a mistake actually. It's not boolean operator , its binary operators like =,==,>=,<= etc


@karnamit2105 Could you please add at least one example, and also add the company to the tags? Please see here for more information.


@karnamit2105 how about this using bit manipulation in C++
bool equal(int a, int b) { return !(a^b); }


@StefanPochmann Sorry, my bad. Embarrassing...out of my mind. I've updated it now.