Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!accuvax.nwu.edu!tank!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.lang.c Subject: Re: declaring variable Message-ID: <16827@mimsy.UUCP> Date: 10 Apr 89 21:27:50 GMT References: <2585@ssc-vax.UUCP> <16969@cup.portal.com> Distribution: na Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 23 In article <16969@cup.portal.com> Kevin_P_McCarty@cup.portal.com writes: [referring to the `declaration' sequence `double A, ...; WhatAmI, ...'] >tcc -c -A test1 >Turbo C Version 2.0 Copyright (c) 1987, 1988 Borland International [errors] I do not recall whether the original question referred specifically to Turbo C version 2.0. In any case, it is worth noting that in some Classic C compilers, naming a variable outside a function without giving a type declares that variable as an integer. Thus: nwords; main() { ... produces the global integer variable `nwords'. This was not legal in the dpANS when last I checked (which was before it became a pANS). -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris