| Deutsch English Français Italiano |
|
<72uqujlo006r4ggh10rt94j158fpbqlm1e@4ax.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Rosario19 <Ros@invalid.invalid>
Newsgroups: comp.lang.c
Subject: Re: "array"
Date: Wed, 02 Apr 2025 19:53:15 +0200
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <72uqujlo006r4ggh10rt94j158fpbqlm1e@4ax.com>
References: <array-20250402114422@ram.dialup.fu-berlin.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Injection-Date: Wed, 02 Apr 2025 19:53:17 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="6f9cc81f8f964c272acde67391d1f50a";
logging-data="2570943"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+mwVFaJH+urFjie0qCoFUDmmNiFjN/VNw="
Cancel-Lock: sha1:8OmS24zdj+e78UPQAr8tDD9Nlz8=
X-Newsreader: Forte Free Agent 1.93/32.576 English (American)
Bytes: 1688
On 2 Apr 2025 11:01:01 GMT, (Stefan Ram) wrote:
> Below, an array is allocated dynamically.
>
>#include <stdio.h>
>#include <stdlib.h>
>
>int main( void )
>{ char *array_pointer =3D malloc( 10 * sizeof *array_pointer );
> if( !array_pointer )return EXIT_FAILURE;
> *array_pointer =3D 'a';
> free( array_pointer ); }
>
> But is it really an array according to the C spec?
>
> C only defines "array type", not array, but it uses ISO/IEC 2382:2015
> as a normative reference, and ISO/IEC 2382:2015 says:
Im not one expert...
i consider one array one contiguos succession of elements, where
elements have the sama type
and array has no type
or has the type "array of lements type T"