Liste des Groupes | Revenir à cl c |
Muttley@dastardlyhq.com writes:I regularly use arrays with known fixed sizes. In fact, in my code those are absolutely dominant - it is very rare for me to see or use an array whose size is /not/ fixed at compile time. Sometimes I will have general functions that take parameters that are arrays of arbitrary length, but not often.
[...]If you twant o pass an actual array to a function instead of a pointer to it,Yes, but that's not necessarily useful. An array that's a member
embedding it in a structure is the only way to do it.
of a struct can only be of a constant length (unless it's a flexible
array member, but that doesn't help). Functions that work with
arrays typically need to deal with arrays of arbitrary length.
Les messages affichés proviennent d'usenet.