Parameter Types in Old-Style Function Definitions

Henry Spencer henry at zoo.toronto.edu
Thu Sep 6 03:28:15 AEST 1990


In article <10391 at pt.cs.cmu.edu> hjelm at 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 at zoo.toronto.edu   utzoo!henry



More information about the Comp.std.c mailing list