title: Different output in GCC and Borland Turbo C for printf() statement
body: <p>I have a small code in C</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  int main()
  {
      int a=10,b;
      b=a++ + ++a;
      printf("%d,%d,%d,%d",b,a++,a,++a);
      return 0;
  }
  </code></pre>
  
  <p>Turbo C gives the following Output (as expected)</p>
  
  <pre><code>22,13,13,13
  </code></pre>
  
  <p>But GCC (used ubuntu and Code blocks compiler in windows) gives the following</p>
  
  <pre><code>22,13,14,14
  </code></pre>
  
  <p>I believe that Turbo c output was correct, but how come GCC is returning different output?</p>