title: How does return i++ work?
body: <p>This is a question about the ++ operator. It is a question that doesn't solve a problem but I believe that it would be very informative to know the answer. So, while StackOverflow is a source of information, I would like to append the available knowledge here!</p>
  
  <p>So, the problem:</p>
  
  <pre><code>int i = 0;
  
  int getNextInt(){
  
      return i++;
  }
  </code></pre>
  
  <p>This is it. The question is how the ++ operator is implemented in the function call stack and where the increment actually happens when we call that function in our code.</p>
  
  <p>I am really wondering a long time!</p>