title: Using the post-increment in function arguments
body: <p>When I run this code, the output is 11, 10.</p>
  
  <p>Why on earth would that be?  Can someone give me an explanation of this that will hopefully enlighten me?</p>
  
  <p>Thanks</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  void print(int x, int y)
  { 
      cout &lt;&lt; x &lt;&lt; endl;
      cout &lt;&lt; y &lt;&lt; endl;
  }
  int main()
  {
      int x = 10;
      print(x, x++);
  }
  </code></pre>