Re: technology discussion → does the world need a "new" C ?

Liste des GroupesRevenir à l c 
Sujet : Re: technology discussion → does the world need a "new" C ?
De : tr.17687 (at) *nospam* z991.linuxsc.com (Tim Rentsch)
Groupes : comp.lang.c
Date : 14. Jul 2024, 02:44:36
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <8634oc7nnf.fsf@linuxsc.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
User-Agent : Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
bart <bc@freeuk.com> writes:

On 12/07/2024 12:44, Janis Papanagnou wrote:
>
On 11.07.2024 22:37, bart wrote:
>
On 11/07/2024 21:29, Keith Thompson wrote:
>
bart <bc@freeuk.com> writes:
>
This my first comment on the subject:
>
"Arrays are passed by reference:
    ...
Although ..."
>
And that statement was incorrect, even with the "Although".
>
So arrays are passed by value?  Gotcha.
>
Neither is true. - Tertium datur!
>
"Array passing" is in "C" realized using a pointer passing
mechanism where the pointer is passed "by value".
>
Neither an array is passed [by value] nor there's a "call
by reference" mechanism in "C".
>
So how are the elements of the caller's array accessed?

That is irrelevant to the question because array elements
are not arguments to the function.

Date Sujet#  Auteur
25 Jul 25 o 

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal