cdecl keyword
Glenn_A_Story at cup.portal.com
Glenn_A_Story at cup.portal.com
Sun Apr 24 01:05:26 AEST 1988
>IN article <185 at premise.ZONE1.COM>, chang at premise.ZONE1.COM (John Chang) wrote
>> > [...] C uses pass-by-value for everything.
>> ^^^^^^^^^^ What about arrays?
>In C, arrays are _never_ passed to functions. Only the addresses of arrays.
>These are passed by value only.
Wait a minute! What's the difference between "the address of 'x' passed
by value" and "'x' passed by reference"?
I've always considered C's passing of addresses as a form of call by reference,
especially in the case of arrays where you don't even explicity specify
"address of" (&).
Regards,
Glenn
More information about the Comp.lang.c
mailing list