title: Why if( constant == variable ) is preferred instead of if ( variable == constant )
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/148298/how-to-check-for-equals-0-i-or-i-0">How to check for equals? (0 == i) or (i == 0)</a><br>
    <a href="https://stackoverflow.com/questions/271561/why-does-one-often-see-null-variable-instead-of-variable-null-in-c">Why does one often see &ldquo;null != variable&rdquo; instead of &ldquo;variable != null&rdquo; in C#?</a><br>
    <a href="https://stackoverflow.com/questions/3309089/why-do-some-experienced-programmers-write-expressions-this-way">Why do some experienced programmers write expressions this way?</a><br>
    <a href="https://stackoverflow.com/questions/6830176/what-is-the-meaning-of-null-value-in-c">What is the meaning of NULL != value in C++?</a>  </p>
  </blockquote>
  
  
  
  <p>For example,</p>
  
  <pre><code> int k =5;
   if( 5 == k )
   {
   } 
  </code></pre>
  
  <p>is preferred over</p>
  
  <pre><code>if (k == 5)
   {
   }
  </code></pre>
  
  <p>Is it considered only for formatting purpose or is there any reason behind it?</p>