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
if( (num>>sizeof(int)*8 - 1) == 0 ) // number is positive else // number is negative
If value is 0 then number is positive else negative