At 12:43 2007-01-21, you wrote:
>this is some thing intresting !
>
>can any one tell why the output of this code is 8 ??

No, it's undefined behavior.   go look up "sequence points" then you 
can tell US why what it will do is indeterminate


>{
>int a=1,b;
>b = ++a + a++ + a++ + a++;
>cout<<b;
>}
>
>
>
>
>
>To unsubscribe, send a blank message to 
><mailto:[EMAIL PROTECTED]>.
>Yahoo! Groups Links
>
>
>

Victor A. Wagner Jr.      http://rudbek.com
The five most dangerous words in the English language:
               "There oughta be a law" 

Reply via email to