| Deutsch English Français Italiano |
|
<vvcd07$2eh4j$1@dont-email.me> 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: Muttley@DastardlyHQ.org Newsgroups: comp.lang.c Subject: Re: Regarding assignment to struct Date: Tue, 6 May 2025 07:16:24 -0000 (UTC) Organization: A noiseless patient Spider Lines: 15 Message-ID: <vvcd07$2eh4j$1@dont-email.me> References: <vv338b$16oam$1@dont-email.me> <vv4olm$388j7$1@dont-email.me> <vv9u4v$46n9$1@dont-email.me> <877c2uhj9l.fsf@nosuchdomain.example.com> Injection-Date: Tue, 06 May 2025 09:16:24 +0200 (CEST) Injection-Info: dont-email.me; posting-host="dfa49597f65451004eb49447431b53ab"; logging-data="2573459"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/3eVGfZsPPg2asAAXUKYmN" Cancel-Lock: sha1:+601AJnZSgHOdrrJaYRRxlDhG+o= Bytes: 1466 On Mon, 05 May 2025 13:53:10 -0700 Keith Thompson <Keith.S.Thompson+u@gmail.com> wibbled: >Muttley@dastardlyhq.com writes: >[...] >> If you twant o pass an actual array to a function instead of a pointer to it, > >> embedding it in a structure is the only way to do it. > >Yes, but that's not necessarily useful. An array that's a member Depends what you're doing. Passing an array in a structure will copy the array saving you having to do it yourself if you don't want to work on the original version. Obviously that doesn't happen if you just pass a pointer.