Article View: comp.std.c
Article #1641Re: Parameter Types in Old-Style Function Definitions
From: Henry Spencer
Date: Wed, 05 Sep 1990 17:28
Date: Wed, 05 Sep 1990 17:28
15 lines
920 bytes
920 bytes
In article <10391@pt.cs.cmu.edu> hjelm@g.gp.cs.cmu.edu (Mark Hjelm) writes:
> f(a, b)
> float a;
> char b;
> {
>
>Is the type of "a" (as seen inside of "f") float or double or either?
>Is the type of "b" char or int or either?
The types are, in all cases except arrays (which silently turn into
pointers), precisely as declared. In general, this can involve
conversions as part of the function-entry sequence.
--
TCP/IP: handling tomorrow's loads today| Henry Spencer at U of Toronto Zoology
OSI: handling yesterday's loads someday| henry@zoo.toronto.edu utzoo!henry
Technical Details
Message-ID:
<1990Sep5.172815.3289@zoo.toronto.edu>Path:
arc1-ca.pugleaf.net!utzoo!henryReferences:
<10391@pt.cs.cmu.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c Path: arc1-ca.pugleaf.net!utzoo!henry From: henry@zoo.toronto.edu (Henry Spencer) Subject: Re: Parameter Types in Old-Style Function Definitions Message-ID: <1990Sep5.172815.3289@zoo.toronto.edu> Organization: U of Toronto Zoology References: <10391@pt.cs.cmu.edu> Date: Wed, 5 Sep 90 17:28:15 GMT