title: post increment and pointer in printf
body: <p>Can someone please explain why this code is outputing <code>2 1</code>, I thought post-increment was supposed to be applied after the printf instruction.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main() {
    int i=1;
    int *p=&amp;i;
    printf("%d %d\n", *p ,i++);
  
    return 0;
  }
  </code></pre>