title: Which is better of the two: if-elif-else or if-else
body: <p>This is not a homework question, this question is a result of just another discussion with my friend.</p>
  
  <p>I searched a lot but could not find any reliable source which establishes the answer with proper reasoning so here I am at the mecca of programmers.</p>
  
  <p>Which of the following two ways of coding is better:</p>
  
  <pre><code>if(a)
  {
      if(b)
      ....
      else if(c)
      ....
  }
  </code></pre>
  
  <p>or</p>
  
  <pre><code>if(a &amp;&amp; b)
  ...
  else if(a &amp;&amp; c)
  ...
  </code></pre>
  
  <p>I searched and found <a href="http://en.wikipedia.org/wiki/Cyclomatic_complexity" rel="nofollow">http://en.wikipedia.org/wiki/Cyclomatic_complexity</a> to be useful but still could not make out final choice.</p>
  
  <p>Please provide relevant reasoning as well.</p>
  
  <p>Cheers!</p>