passing *char parameters by reference

RAMontante bobmon at iuvax.cs.indiana.edu
Mon Aug 14 07:13:11 AEST 1989


A minor comment...

Among all the responses to this swap question, I think I saw _one_
that suggested getting rid of the ampersands and passing in the array
pointers (instead of the addresses of the array pointers).  All the
others leap right in and rewrite the swap routine to accept the
addresses of the pointers, at the expense of working through an
additional, unneeded level of indirection.

Do people have some objection to quick and straightforward fixes, or am
I missing something?



More information about the Comp.lang.c mailing list