Re: Array size limits
From: Ben Pfaff (blp_at_cs.stanford.edu)
Date: 08/31/04
- Next message: Ben Pfaff: "Re: Will EXIT_SUCCESS and EXIT_FAILURE have the same value on all platforms?"
- Previous message: Tim Rentsch: "Re: Typedef structs"
- In reply to: Carol Depore: "Re: Array size limits"
- Next in thread: Carol Depore: "Re: Array size limits"
- Reply: Carol Depore: "Re: Array size limits"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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_
- Next message: Ben Pfaff: "Re: Will EXIT_SUCCESS and EXIT_FAILURE have the same value on all platforms?"
- Previous message: Tim Rentsch: "Re: Typedef structs"
- In reply to: Carol Depore: "Re: Array size limits"
- Next in thread: Carol Depore: "Re: Array size limits"
- Reply: Carol Depore: "Re: Array size limits"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|