Re: $i++ problem understanding
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: $i++ problem understanding

From: Default User <defaultuserbr@yahoo.com>
Date: Fri Oct 07 2005 - 20:40:49 CEST

Jerry Stuckle wrote:

> Actually, Dana is correct. "i++ + i++" is undefined in C. The
> language defines the evaluation order of the operators - but not the
> operands. So if i = 1, the result could be 1+1, 2+1 or 1+2 (although
> probably not the last). It's up to the compiler manufacturers on how
> it's implemented.

Or just make demons fly out of your nose.

Brian
Received on Tue Oct 18 02:39:01 2005