title: Multiple OR or AND conditions in IF statement
body: <p>I am having a basic doubt regarding IF statement.
  Let's say I want to match string SUN with a character array(size 3).</p>
  
  <pre><code>if(arr[0]!='S' || arr[1]!='U' || arr[2]!='N')
  
  cout &lt;&lt; "no";
  
  else
  
  cout&lt;&lt; "yes";
  </code></pre>
  
  <p>Are all conditions checked in If statement or does it return true on first mismatch?</p>
  
  <p>If all conditions are checked, will the the order of checking be from right to left?</p>