Array parameters
Norman Diamond
ndiamond at watdaisy.UUCP
Thu Jan 10 07:03:51 AEST 1985
In order to pass an array parameter by value (instead of passing a pointer
to it), the array has to be imbedded in a structure and the structure then
passed by value.
I suppose if one wants to pass a structure by reference, it could be made
an array of size 1. (Of course, one could also use &, but obviously that
would be cheating -- if the use of & could be suggested for structure
references, then it could also be suggested for array references, and the
default could be by value consistently.)
-- Norman Diamond
UUCP: {decvax|utzoo|ihnp4|allegra|clyde}!watmath!watdaisy!ndiamond
CSNET: ndiamond%watdaisy at waterloo.csnet
ARPA: ndiamond%watdaisy%waterloo.csnet at csnet-relay.arpa
"Opinions are those of the keyboard, and do not reflect on me or higher-ups."
More information about the Comp.lang.c
mailing list