|Syntactic Confectionery Delight|
Re: Brain Teaserby marcink (Monk)
|on Jun 10, 2001 at 22:59 UTC||Need Help??|
Update: added <READMORE> to let others have fun too ;-)
Why does it evaluate to zero
It does not ;-) add a print "\n"; after that and you'll see.
Since references return memory addresses when accessed as numbers, the last line will result in some value close to 1, just a little smaller (this is because (1) is allocated before (2)).
Anyway, that's my guess. Anyone care to point my mistakes?