swap() macro

Doug Gwyn gwyn at brl-smoke.ARPA
Tue Jul 1 06:25:06 AEST 1986


In article <733 at ho95e.UUCP> wcs at ho95e.UUCP (Bill Stewart 1-201-949-0705 ihnp4!ho95c!wcs HO 2G202) writes:
>I'm not sure I can define what "work right" means in a swap :-)

It may be amusing and/or instructive to contemplate the fact that
there is no way to write a function that exchanges the contents of
two variables in a language where parameters are passed "by name".



More information about the Comp.lang.c mailing list