Anuerin G. Diaz wrote:
On Wed, 11 Jun 2003 20:49:49 +0800, "fooler" <[EMAIL PROTECTED]> wrote:
here are some more side effects of order of evaluation:

f() + g()

a[i] = i++;

f(x++, x++, x++)

i know this is an expert list but would you care to explain further what is the expected and actual (usually what comes out) of the examples you have given above? thanks.

That's exactly the point -- there's no definite or specified order in which the expressions will be evaluated. The actual results will vary depending on compiler, optimization flags, alignment of the planets, and whether you're wearing clean underwear that day.


Brian

--
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