CBFalconer <cbfalconer@yahoo.comwrites:
Quote:
Igmar Palsenberg wrote:
Quote:
>shreesh wrote:
Quote:
>>I want to use an array of size greater than ARRAY[256][256] but
>>am getting an array size too large error.
>>I am using a BC 3.1 on msdos ver 5.1.2600 on XP.
>>How can i get around this simple but irritating problem.
>>
>Use a decent compiler, or switch to heap allocated memory.
>
Don't be silly. There is no guarantee of over 32767 bytes
available in C90, nor of over 65535 available in C99.
Of course there's no guarantee, but compilers are *permitted* to
support objects larger than the limits specified in the standard(s).
They're also permitted to support larger objects in some contexts than
in others (e.g., depending on storage duration).
Switching to a different compiler, or using malloc() rather than a
declared object, is a perfectly sensible thing to try, even though the
standard doesn't happen to guarantee that it will help.
--
Keith Thompson (The_Other_Keith)
kst-u@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.