cdecl keyword

Tainter tainter at ihlpg.ATT.COM
Tue Apr 26 15:48:54 AEST 1988


In article <50731 at sun.uucp>, limes at sun.uucp (Greg Limes) writes:
> In article <4737 at cup.portal.com> Glenn_A_Story at cup.portal.com writes:
>> Wait a minute!  What's the difference between "the address of 'x' passed
>> by value" and "'x' passed by reference"?

> In the first [address of X], the caller is expecting an address, and is free
> to muck about with the formal parameter holding it.

This is the answer to his question.  This gives the former a pure super set
of the capabilities provided by the latter.  Of course, the syntax to
use these two parameter types equivalently is different as well.

The rest of Greg Limes response was tangential and simply a discussion
of what makes the two types similar.

>    Greg Limes [limes at sun.com]

--j.a.tainter



More information about the Comp.lang.c mailing list