title: printf("%d %d %d\n",++a, a++,a) output
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/949433/could-anyone-explain-these-undefined-behaviors-i-i-i-i-i-etc">Could anyone explain these undefined behaviors (i = i++ + ++i , i = i++, etc&hellip;)</a>  </p>
  </blockquote>
  
  <p>I'm not able to understand the output of this program (using <code>gcc</code>).</p>
  
  <pre><code>main()
  {
    int a=10;
    printf("%d %d %d\n",++a, a++,a);
  }
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>12 10 12
  </code></pre>
  
  <p>Also, please explain the order of evaluation of arguments of <code>printf()</code>.</p>