title: How "a<b<c" or "a>b>c" are evaluated in C
body: <p>I found this question in many interviews and my teacher asked me the same the main doubt was that if I include <code>&lt;stdbool.h&gt;</code> in C99 standard will that evaluate this as <code>(true)&lt;c</code>  or <code>(false)&gt;c</code>. Need a more clear answer than the linked post --> <a href="https://stackoverflow.com/questions/6961643/usage-of-greater-than-less-than-operators]">Usage of greater than, less than operators</a> .</p>
  
  <p>How <code>a&lt;b&lt;c</code>  or <code>a&gt;b&gt;c</code> are evaluated in C<br>
  for example in the following code.</p>
  
  <pre><code># include&lt;stdbool.h&gt; 
  int main(void){
      int a = 1,b=2,c=3;
      if(a&lt;b&lt;c)
          printf("a great b great c");
      }
  </code></pre>
  
  <p>thank you in advance.</p>