title: What does a++ mean in C?
body: <p>I am trying to understand the basics of C programming and I'm kind of new to C, I am failing to understand why the output of my program is: </p>
  
  <pre><code>1 2
  1 1
  </code></pre>
  
  <p>Quite alright, I understand the output from the first <code>printf()</code> but I do not seem to get the logic behind the second <code>printf()</code>. Why can't it display <code>1 2</code> as well?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main()
  {
      int a = 1, b = 2;
  
      printf("%d %d\n", a, b);
      printf("%d %d\n", a, a++);
  
      return 0;
  }
  </code></pre>