** Sabi ni Doc Pabling noong Wed, 11 Jun 2003 08:46:08 +0800

> Quoting Rodel Viado <[EMAIL PROTECTED]>:
> 
> > there is no optimization done here the reason the
> > answer is 7 is this:
> > 
> >               i = i++ + ++i + i++ + ++i
> > 
> > 
> > Step 1        0    0           
> > Step 2        1          1     
> > Step 3        2                3     
> > Step 4        3                      4       
> >                      
> >               ^  
> >          intermediate    
> >          vslues of i  
> > 
> > Final value of i is  0 + 1 + 3 + 4 = 7
> 
> 7?

Eh, dagdag-bawas?

Mabuhay.
--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to