On 1/21/07, ankurnot4u <[EMAIL PROTECTED]> wrote:
> this is some thing intresting !
>
> can any one tell why the output of this code is 8 ??
>
> {
> int a=1,b;
> b = ++a + a++ + a++ + a++;
> cout<<b;
> }You are invoking undefined behavior: http://c-faq.com/expr/evalorder2.html -- Brett ------------------------------------------------------------ "In the rhythm of music a secret is hidden; If I were to divulge it, it would overturn the world." -- Jelaleddin Rumi
