Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!iscuva!frigg!carlp From: carlp@frigg.iscs.com (Carl Paukstis) Newsgroups: comp.lang.c Subject: Re: declaring variable Message-ID: <2459@iscuva.ISCS.COM> Date: 11 Apr 89 19:35:56 GMT References: <26707@tiger.oxy.edu> <961@atanasoff.cs.iastate.edu> Sender: news@iscuva.ISCS.COM Reply-To: carlp@iscuva.ISCS.COM (Carl Paukstis) Organization: ISC Systems Corporation, Spokane WA Lines: 22 >In article <26707@tiger.oxy.edu> bagpiper@oxy.edu (Michael Paul Hunter) writes: >A friend of mind had a program that wasn't working properly. (what a nice start) >Within this program was a declaration that was similar to: >double A, > B, > fooY, > fooX, > whelp; /* <--- note this */ > WhatAmI, > AndMoreVariables; My guess is that the compiler allows the older style, where the word "int" was optional and assumed in a variable declaration. WhatAmI and AndMoreVariables would be "int". Maybe non-obvious, but quite common in some older programs. -- Carl Paukstis "I'm the NRA" | DOMAIN: carlp@iscuva.ISCS.COM "Just say NO to the 'War on Liberty'" | UUCP: ...uunet!iscuva!carlp | GEnie: carlp BIX: carlp I speak for myself, not my employer. | Ma Bell: +1 509 927 5600 x5321