Yet another question related to sequence points
<p>Yes i read the article on <a href="http://stackoverflow.com/questions/4176328/undefined-behavior-and-sequence-points">sequence points</a>. However i could not understand why <code>++i = 2</code> would invoke undefined behavior? The final value of <code>i</code> would be 2 regardless of anything, so how come the expression is ub?</p>

<p>code snippet</p>

<pre><code>int main()
{
  int i =0;
  ++i=2;
  return 0;
}
</code></pre>

<p>Sorry my english is not very good.</p>
