Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!samsung!cg-atla!fredex From: fredex@cg-atla.UUCP (Fred Smith) Newsgroups: comp.lang.c Subject: Re: Zero Length Arrays Allowed in C Standard? Message-ID: <8129@cg-atla.UUCP> Date: 4 Dec 89 16:44:55 GMT References: <2298@jato.Jpl.Nasa.Gov> <11715@smoke.BRL.MIL> <480@codonics.COM> <1989Dec2.210042.12668@twwells.com> Reply-To: fredex@cg-atla.UUCP (Fred Smith) Organization: Agfa Compugraphic Division Lines: 15 In article <1989Dec2.210042.12668@twwells.com> bill@twwells.com (T. William Wells) writes: >In article <480@codonics.COM> bret@codonics.com (Bret Orsburn) writes: >: >No; Standard C does not support zero-sized objects. >: Excuse me, but I must ask a stupid question. Why the !@#$ would anyone even want to declare an array of zero size ???? Isn't that rather similar to a pointer to the same type of object?? If so, what is wrong with declaring a pointer rather than an empty array ?? I don't want to get flamed for this questin, but I would like an answer from one of the gurus (Doug Gwyn, Chris Torek, Henry Spencer, etc.)! Fred