From: chris319 Newsgroups: comp.os.msdos.djgpp Subject: Re: Array Size Question Date: Sat, 11 Nov 2000 16:46:48 -0800 Organization: MindSpring Enterprises Lines: 15 Message-ID: <0gpr0t4krbjo38b5hlpelt5ofq1bf5ec78@4ax.com> References: <973951101 DOT 305564 AT shelley DOT paradise DOT net DOT nz> NNTP-Posting-Host: a5.79.71.71 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Server-Date: 12 Nov 2000 00:46:03 GMT X-Newsreader: Forte Agent 1.8/32.548 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com >What a curious question! Have you been using other compilers, say, 16-bit >compilers recently? > >As far as I know, gcc will allow you to create an array up to probably the >maximum address space on a 32-bit processor. I've made arrays that are 64 >or so megabytes of structs, and I assume one can go beyond that... > >If you're asking about the maximum elements in an array, that's also >probabably going to be about 2.147 billion. > >I suggest you don't worry about this, unless you start to have problems. The problem I'm having is that I set up an array of 1024 doubles, I explicitly initialize all elements to zero using a "for" loop, and bizarre non-zero values are somehow creeping into array elements above 512.