Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Passing values from structure arrays to a generic geometrical mean function Date: Sun, 29 Jan 2017 12:34:32 -0800 Organization: None to speak of Lines: 23 Message-ID: References: <8abfc054-e7c3-498c-a7b4-8e7471f57ac6@googlegroups.com> <0a48658d-968a-4ddf-8c3e-5a856e298ec1@googlegroups.com> <87lgtwxxjp.fsf@bsb.me.uk> <3a8dc13f-3e11-4e38-9717-152d7ee7666d@googlegroups.com> <8737g4xgtk.fsf@bsb.me.uk> <87y3xvv237.fsf@bsb.me.uk> <87k29fuswj.fsf@bsb.me.uk> <87r33mrp6r.fsf@bsb.me.uk> <87a8a9sywa.fsf@bsb.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="0fd733d9f8cc5cb46740a4e887498fc9"; logging-data="28711"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18cBkmKrhYUzvvfPQ/fi6z4" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:2YoARSssoj5IZasGb+BQygUwAKE= sha1:WvBFcB8DcVk3NlJXB7IkigOjXwg= Xref: csiph.com comp.lang.c:102726 Ben Bacarisse writes: [...] > Yes, but you seem to think enums are something special. I used then > simply to name some integers. You probably do > > #define DATA_SIZE 5 > > but you could also do > > enum { DATA_SIZE = 5 }; > > Both are just ways to name a value (though they are very different in > the details -- enums can name only integer values for example). More precisely, enums can only name values of type int. [...] -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"