K&R App A, par. 8 & 8.2, on Declarations

Morris Keesan keesan at bbncca.ARPA
Fri Jul 13 23:56:06 AEST 1984


-----------------------------
    The problem is just one more inconsistency in K&R and subsequent versions
of the C Reference Manual.  Although 18.4 defines data-definition as having
everything optional, and 10. implies that both type and storage class may be
empty simultaneously, 10.2 says "An external data definition has the form
data definition: declaration."  and a "declaration" must have at least a type
or storage-class specifier.  The System V release 1 document has the same 
inconsistency.  I hope the ANSI standard cleans this up.
-- 
			    Morris M. Keesan
			    {decvax,linus,ihnp4,wivax,wjh12,ima}!bbncca!keesan
			    keesan @ BBN-UNIX.ARPA



More information about the Comp.lang.c mailing list