Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!mit.eternal-september.org!.POSTED!not-for-mail From: Richard Newsgroups: comp.lang.c Subject: Re: Constant strings Date: Sun, 27 Apr 2014 04:45:24 +0200 Organization: http://www.ieee.org/ Lines: 26 Message-ID: <8761lv7anv.fsf@gmail.com> References: <0.cfda95f524c227691d46.20140426125013BST.87r44k5myy.fsf@bsb.me.uk> <59228a61-206f-4037-a874-0925d76518f6@googlegroups.com> <20140426194123.529@kylheku.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mit.eternal-september.org; posting-host="4af8175e487d1d8249b5548b81726a30"; logging-data="31603"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+lp8yf6XhXAoqHO6bZdnMIn/aSLrZRSlw=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:DTW7Ch/ImFF9QpXjx1av1b31Oz4= sha1:/jV225uplGK4Bn6+lNXxDTl7Ba8= Xref: csiph.com comp.lang.c:43636 Kaz Kylheku writes: > On 2014-04-26, Kenny McCormack wrote: >> In article , >> Keith Thompson wrote: >> ... >>>In C as it is, you can't pass an array to a subroutine at all. >> >> (Pedantic, CLC-ish answer, which should make Kiki proud) >> >> Because C doesn't have "subroutines". > > The likely intended meaning is that C doesn't support passing arrays to > functions, or returning arrays from functions. Of course you can pass an array ... the fact its not copied is neither here nor there. A pointer to the first element of the array is "the array"..... So passing the pointer is passing the array.... -- "Avoid hyperbole at all costs, its the most destructive argument on the planet" - Mark McIntyre in comp.lang.c