Brain Teaser
Boyd Roberts
boyd at necisa.ho.necisa.oz
Fri Mar 30 10:59:43 AEST 1990
>From article <10289 at wpi.wpi.edu>, by oesterle at wpi.wpi.edu (Shawn H. Oesterle):
> Problem:
> Swap two pointers without using a third pointer.
>
Arithmetic operations with pointers that don't point to `the same array'
are not defined. Apart from that, this `Brain Teaser' is a pointless
discourse into abstruse and non-portable constructs.
Boyd Roberts boyd at necisa.ho.necisa.oz.au
``When the going gets wierd, the weird turn pro...''
More information about the Comp.lang.c
mailing list