title: prefix/suffix increment
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4445706/post-increment-and-pre-increment-concept">Post Increment and Pre Increment concept?</a>  </p>
  </blockquote>
  
  
  
  <p>Can any one explicitly explain how prefix increment differs from suffix increment?</p>
  
  <p>also can someone explain why this output 6?</p>
  
  <pre><code>i=1;
  cout &lt;&lt; ++i + ++i;
  </code></pre>
  
  <p>also why this gives 4</p>
  
  <pre><code>i = 1;
  cout &lt;&lt; ++i + i++;
  </code></pre>
  
  <p>and why this produces true</p>
  
  <pre><code>i = 0;
  cout &lt;&lt; (i++ || i++)
  </code></pre>