title: Can someone explain to me why c=1?
body: <p>I have been learning c recently and came across this problem. I understand that b=(a=10)=10 (correct me if my thought process is wrong please) but i can't understand why c=1, so it would be amazing if someone could explain it to me. Thanks</p>
  <pre><code>#include &lt;stdio.h&gt;
  
  int main()
  {
      int a = 10;
      int b=(a=10);
      int c=(a==10);
      printf(&quot;B %d\n&quot;,b);
      printf(&quot;C %d\n&quot;,c);
  }
  </code></pre>