Question: how to find greatest of two numbers without using comparison operators?
Answer: int maxNumber(int a, int b){
int c = a-b; //considering integers are 32 bits and left most bit is signed.
// Find whether c is -ve or not. Right shift the left most bit of 'c' 31 places.
int k = (c >>31) & 0x1;
return (a- k*c);
}