title: Problems containing multiple "or" operators in C
body: <p>I was solving some problems related to "or" operators in C. </p>
  
  <p>The body of the program was like what mentioned below:</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  
  main() {
      int i = 4, j = -1, k = 0, w, x, y, z;
      w = i || j || k ;
      x = i &amp;&amp; j &amp;&amp; k ;
      z = i &amp;&amp; j || k ;
  
      printf("\n w=%d ,  x = %d", w, x);
      printf("\n y=%d , z = %d", y, z);
  }
  </code></pre>
  
  <p>Can someone please tell me the mechanism of these statements?</p>