passing *char parameters by reference

Shiping Zhang ping at cubmol.BIO.COLUMBIA.EDU
Mon Aug 14 07:55:32 AEST 1989


In article <24555 at iuvax.cs.indiana.edu> bobmon at iuvax.cs.indiana.edu (RAMontante) writes:
>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
>I missing something?

Getting rid of the ampersands would not work as intended. Only the
first characters would be exchanged between the two strings.


-ping



More information about the Comp.lang.c mailing list