At 11:33 2007-01-22, ankurnot4u wrote:
>--- In [email protected], "Brett W. McCoy" <[EMAIL PROTECTED]>
>wrote:
> >
> > 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
> >
>its nt undefined!!

then what do YOU call it?



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