title: Comparing two integers without any comparison
body: <p>Is it possible to find the greatest of two integers without any comparison? I found some  solutions: </p>
  
  <pre><code>if(!(a/b)) // if a is less than b then division result will be zero.
  {
      cout &lt;&lt; " b is greater than a";
  }
  else if (!(a-b)) // we know a is greater than or equal to b now.  check whether they are equal.
  {
      cout &lt;&lt; "a and b are equal";
  }
  else
      cout &lt;&lt; "a is greater than b";
  </code></pre>
  
  <p>But if(c) or if(!c) is a comparison to zero. In addition it doesn't work for negative numbers. In fact I need a solution that avoids any if statement. Instead I should use switch statements and arithmetic operators. ThanX.</p>