Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!gem.mps.ohio-state.edu!ginosko!uunet!mcsun!hp4nl!botter!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.lang.c Subject: Re: swap(x,y) Message-ID: <3040@solo5.cs.vu.nl> Date: 23 Aug 89 08:34:02 GMT References: <8350@boring.cwi.nl> <8514@galbp.LBP.HARRIS.COM> Organization: V.U. Informatica, Amsterdam, the Netherlands Lines: 16 jsb@advdev.LBP.HARRIS.COM (FLEA) writes: \In article <8350@boring.cwi.nl> tromp@piring.cwi.nl (John Tromp) writes: \: (Timothy R. Gottschalk) writes: \... \:> x += y; \:> y = x - y; \:> x -= y; \... \:x^=y^=x^=y; \... \Sorry, folks, both of these are illegal if x and y are pointers. Or if they're structs! :-) -- "rot H - dD/dt = J, div D = rho, div B = 0, |Maarten Litmaath @ VU Amsterdam: rot E + dB/dt = 0" and there was light. |maart@cs.vu.nl, mcvax!botter!maart