[TUHS] Maximum Array Sizes in 16 bit C

Douglas McIlroy douglas.mcilroy at dartmouth.edu
Thu Sep 19 09:51:14 AEST 2024


> The array size} limit that I found through trial and error is (2^15)-1.
> Declaring an array that is [larger] results in an error of "Constant
required",

On its face, it states that anything bigger cannot be an integer constant,
which is reasonable because that's the largest (signed) integer value. Does
that version of C support unsigned constants?

Doug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.tuhs.org/pipermail/tuhs/attachments/20240918/f1fe67b2/attachment.htm>


More information about the TUHS mailing list