title: Increment ++i, i++ and i+=1
body: <p>I am beginner in C++. What I understand is that:-</p>
  
  <p>i++ is executing first, then increment, ++i is increment first, then execute,i+=1 is increment by 1,then execute. But in the FOR loop: </p>
  
  <pre><code>for (i=0;i&lt;10;i++)
  for (i=0;i&lt;10;++i)
  </code></pre>
  
  <p>There is really no difference in these two loops above.</p>
  
  <p>Here is another one to calculate the sum of all integers from 1 to 100:</p>
  
  <pre><code>int i=1, sum=0;
  while (i&lt;=100)
  {
      sum+=i;
      i++;         //i+=1;    ++i;
  }
  cout&lt;&lt;sum&lt;&lt;" "&lt;&lt;i&lt;&lt;endl;
  return 0;
  </code></pre>
  
  <p>But if I replace i++ with i+=1 or ++i, they all return a sum of 5050 and i of 101. So I really don't see any difference in them. </p>
  
  <p>So could anyone explain this to me? Which one of those is used most in programming? Thank you!!</p>