Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 6/7/83; site hao.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!zehntel!hplabs!hao!woods From: woods@hao.UUCP (Greg "Bucket" Woods) Newsgroups: net.lang.c Subject: Re: K&R App A, par. 8 & 8.2, on Declarations, Defaulting. Message-ID: <1027@hao.UUCP> Date: Wed, 4-Jul-84 02:49:47 EDT Article-I.D.: hao.1027 Posted: Wed Jul 4 02:49:47 1984 Date-Received: Sat, 30-Jun-84 04:11:30 EDT References: <180@log-hb.UUCP> Organization: High Altitude Obs./NCAR, Boulder CO Lines: 19 I don't know what the manual or the standards say, but under no circumstances should a = 1; be allowed as a valid declaration. Gramatically it is indistinguishable from an assignment statement! If it were the first statement after the declaration section, should it be flagged as a multiple declaration error if "a" were declared above as a pointer to something, or should it assign a pointer of the appropriate type to location 1? If it is legal, it stinks. --Greg -- {ucbvax!hplabs | allegra!nbires | decvax!stcvax | harpo!seismo | ihnp4!stcvax} !hao!woods "I only want to hold you, I don't want to tie you down"