🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1640

Parameter Types in Old-Style Function Definitions

#1640
From: Mark Hjelm
Date: Wed, 05 Sep 1990 11:24
13 lines
674 bytes
What is the compiler allowed/required to do for this:

    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? 

Mark
hjelm@cs.cmu.edu
Technical Details
Message-ID: <10391@pt.cs.cmu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!g.gp.cs.cmu.edu!hjelm

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!g.gp.cs.cmu.edu!hjelm
From: hjelm@g.gp.cs.cmu.edu (Mark Hjelm)
Newsgroups: comp.std.c
Subject: Parameter Types in Old-Style Function Definitions
Keywords: parameter, function
Message-ID: <10391@pt.cs.cmu.edu>
Date: 5 Sep 90 11:24:49 GMT
Organization: Carnegie-Mellon University, CS/RI
Lines: 13