Simplest way to check if two integers have same sign? February 16, 2023 by Tarik What’s wrong with return ((x<0) == (y<0)); ?