Yes i read the article on sequence points. However i could not understand why ++i = 2 would invoke undefined behavior? The final value of i would be 2 regardless of anything, so how come the expression is ub?
code snippet
int main()
{
  int i =0;
  ++i=2;
  return 0;
}
Sorry my english is not very good.
 
     
     
     
     
     
     
    