I can check whether a number is odd/even using bitwise operators. Can I check whether a number is positive/zero/negative without using any conditional statements/operators l
It is quite simple
It can be easily done by
return ((!!x) | (x >> 31));
it returns