Date: Wed, 8 Oct 1997 17:17:17 +0200 (IST) From: Eli Zaretskii To: Peter Berdeklis cc: djgpp AT delorie DOT com Subject: Re: [Q] array declaration In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Wed, 8 Oct 1997, Peter Berdeklis wrote: > If you include the header file in the source file that defines the array, > then the compiler will complain about a redefinition of the array only if > the type or size of the array is different. If the type and size of the > extern declaration and the definition are the same there will be no > complaint. Maybe I misunderstood what was Victor's problem; if so, I apologize. I thought Victor was asking how could he avoid putting that array dimension in two different places. If the dimension is only in one place, he doesn't have to worry about two potentially different numbers. So I suggested to only use the actual dimension once. OTOH, your suggestion still requires to write the dimension twice, so the possibility of error still exists, even though the compiler might catch it.