shouldn't 0 + 1 + 3 + 4 = 7 be equal to 8?
 
-------Original Message-------
 
Date: Wednesday, June 11, 2003 8:55:50 AM
Subject: Re: [plug] [OT] i++ and ++i
 
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?

P~Manalastas
--
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

.
____________________________________________________
  IncrediMail - Email has finally evolved - Click Here
--
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