comma operator

Frank Adams franka at mmintl.UUCP
Tue Jan 26 11:47:41 AEST 1988


In article <2382 at ihuxv.ATT.COM> rck at ihuxv.ATT.COM (R. C. Kukuk) writes:
|> In article <3887 at sigi.Colorado.EDU> swarbric at tramp.Colorado.EDU (SWARBRICK FRANCIS JOHN) writes:
|> >#define swap(a,b) ((a) = ((b) = ((a) = (a) ^ (b)) ^ (b)) ^ (a))
|This oldie fails when a == b.

I believe you mean &a == &b.
-- 

Frank Adams                           ihnp4!philabs!pwa-b!mmintl!franka
Ashton-Tate          52 Oakland Ave North         E. Hartford, CT 06108



More information about the Comp.lang.c mailing list