Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rutgers!mtune!lznv!psc From: psc@lznv.ATT.COM (Paul S. R. Chisholm) Newsgroups: comp.sys.ibm.pc Subject: Re: Another TURBO C Bug?? Message-ID: <1110@lznv.ATT.COM> Date: Thu, 23-Jul-87 13:19:24 EDT Article-I.D.: lznv.1110 Posted: Thu Jul 23 13:19:24 1987 Date-Received: Sat, 25-Jul-87 07:45:56 EDT References: <1236@ihlpm.ATT.COM> <3320030@hpsrlc.HP.COM> Organization: AT&T Lines: 24 Summary: yes, this is based on ANSI C In article <3320030@hpsrlc.HP.COM>, darrylo@hpsrlc.UUCP writes: > In comp.sys.ibm.pc, kmh@ihlpm.ATT.COM (Kirk Hoyer) writes: > > Paul Chisholm correctly pointed out to me that, according to K & R > > section 2.7, floats are cast to doubles when used as function > > arguments. (I should note that the "cc" compiler on the large UNIX > > system I use at work was able to handle the program correctly, even > > though floats and double are different sizes.) (Maybe floats *are* doubles on your large system???) > I've heard that Turbo C WILL pass a float as a float (NOT as a double) > if function prototyping is used. Yes, indeed. If you'll remember, Kirk's program worked with prototypes, but not without them. > Is this ANSI C??? > -- Darryl Okahata, hplabs!hpcea!hpsrla!darrylo, CompuServe: 75206,3074 Yes (and C++, where function prototypes came from). -Paul S. R. Chisholm, UUCP {ihnp4,cbosgd,allegra,vax135,mtune}!lznv!psc AT&T Mail !psrchisholm, Internet psc@lznv.att.com I'm not speaking for my employer, I'm just speaking my mind.