title: Using ++ inside the sizeof keyword
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1581839/whats-the-mechanism-of-sizeof-in-c-c">what&#39;s the mechanism of sizeof() in C/C++?</a>  </p>
  </blockquote>
  
  
  
  <p>Hi,</p>
  
  <p>I'm a TA for a university, and recently, I showed my undergraduate students the following C code from a C puzzle I found:</p>
  
  <pre><code>int i = 5;
  int j = sizeof(i++);
  printf("%d\n%d\n", i, j);
  </code></pre>
  
  <p>I just have one question: why is the output for i equal to 5, not 6? Is the ++ simply disregarded? What's going on here? Thanks!</p>