undefined behavior in c++
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/949433/could-anyone-explain-these-undefined-behaviors-i-i-i-i-i-etc">Could anyone explain these undefined behaviors (i = i++ + ++i , i = i++, etc&hellip;)</a>  </p>
</blockquote>



<p>why this code have different answer in different compiler?</p>

<p>int u=10,k;
k=(++u)+(++u)+(++u);
printf("k=%d ",k);</p>

<p>(for example in dev compiler : k=37 )</p>
