## Simplest way to check if two integers have same sign?

Which is the simplest way to check if two integers have same sign? Is there any short bitwise trick to do this? Answer What’s wrong with return ((x<0) == (y<0)); ? AttributionSource : Link , Question Author : Community , Answer Author : Rik