Re: Array size limits

From: Ben Pfaff (blp_at_cs.stanford.edu)
Date: 08/31/04


Date: Mon, 30 Aug 2004 20:48:45 -0700

Carol Depore <nobody@nowhere.com> writes:

> On Mon, 30 Aug 2004 21:48:07 -0500, Jack Klein <jackklein@spamcop.net>
> wrote:
>>No C implementation is required to provide for objects greater than
>>that size, which means that they don't need to allow for an array of
>>ints greater than (int)(65535 / sizeof(int)).
>
> So...are you saying that I am guaranteed at least int a[65535], but no
> guarantees beyond that?

No. To start with, sizeof(int) may be, and usually is, greater
than 1.

-- 
"...what folly I commit, I dedicate to you."
--William Shakespeare, _Troilus and Cressida_


Relevant Pages