Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site watdaisy.UUCP
Path: utzoo!watmath!watdaisy!ndiamond
From: ndiamond@watdaisy.UUCP (Norman Diamond)
Newsgroups: net.lang.c
Subject: Array parameters
Message-ID: <6850@watdaisy.UUCP>
Date: Wed, 9-Jan-85 16:03:51 EST
Article-I.D.: watdaisy.6850
Posted: Wed Jan  9 16:03:51 1985
Date-Received: Thu, 10-Jan-85 07:10:48 EST
Distribution: net
Organization: U of Waterloo, Ontario
Lines: 17

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@waterloo.csnet
ARPA:  ndiamond%watdaisy%waterloo.csnet@csnet-relay.arpa

"Opinions are those of the keyboard, and do not reflect on me or higher-ups."