Sujet : Re: "array"
De : Muttley (at) *nospam* DastardlyHQ.org
Groupes : comp.lang.cDate : 02. Apr 2025, 13:43:59
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vsjbef$1s0b3$1@dont-email.me>
References : 1 2
On 2 Apr 2025 11:46:17 GMT
ram@zedat.fu-berlin.de (Stefan Ram) wibbled:
ram@zedat.fu-berlin.de (Stefan Ram) wrote or quoted:
C only defines "array type", not array, but it uses ISO/IEC 2382:2015
as a normative reference, and ISO/IEC 2382:2015 says:
>
In practice, C programmers probably most often use
>
|An array is a collection of values, all of the same type,
|stored contiguously in memory.
"C data types" (2025) - Wikipedia-Seite
>
, but I have not yet found a way to derive this from the ISO C spec!
>
You can't define mixed type arrays and the members have to be contiguous in
memory or half the standard library would fail.