<=> and obfuscation
J. Shapiro
jss at sjuvax.UUCP
Sat Feb 16 18:35:47 AEST 1985
[Aren't you hungry..?]
> People have been arguing about the statement that
> b ^= a ^= b ^= a;
> gives 0 when a and b are the same. However, you've misunderstood the
> original statement - the problem is not when a and b have the same VALUE,
> but when they have the same ADDRESS.
> --
> Bill Stewart ho95c!wcs AT&T Bell Labs, Holmdel NJ
> HO 4K-435 x0705 (201-949-0705)
> {allegra, ucbvax!ihnp4, decvax!harpo}!houxf!stewart
I might suggest that if you are foolish enough to try to swap a and b where
&a == &b, you deserve what you get... There *is* a certain poetic justice
to it. ;-)
Jon Shapiro
Haverford College
More information about the Comp.lang.c
mailing list