Liste des Groupes | Revenir à cl c |
bart <bc@freeuk.com> writes:Actually, I /was/ genuinely curious as to how a function's access to its caller's array elements are described without using 'pointer' or 'reference'.
[...]If you had to describe to someone how a function accesses array dataThe same thing I've written to you many times over the last several
in its caller, what would you say?
years in this newsgroup.
It's clearly not by value. It's apparently not by reference. You can'tYes, function can access array data by means other than passing arrays
get away with saying they are not passed, as clearly functions *can*
access array data via parameters.
as parameters.
Or would you merely refer to the relevant section in the language reference?That, and to section 6 of the comp.lang.c FAQ, which is an excellent
description of C's treatment of arrays and pointers. You've repeatedly
declined to say whether you've read it. I encourage you to do so.
Just curious.Sure you are.
Les messages affichés proviennent d'usenet.