passing arrays by value

ron vaughn rjv at ihdev.UUCP
Thu May 16 12:15:26 AEST 1985


*** EGASSEM RUOY HTIW ENIL SIHT ECALPER ***

quick and simple:  in c i wanted to pass an array by value.  oops.  hmmmm.
ponder ponder.  compiler says: an array IS a pointer.  quick
and dirty workaround -- shove the array in a struct (that does nothing
but contain the array) and pass the struct around.  worked fine.  looked
ugly.  anyone have any better ideas??  am i missing something obvious here??


	take my code, please.

	ron vaughn	...!ihnp4!ihdev!rjv



More information about the Comp.lang.c mailing list