Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Bartc <bc@freeuk.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: struct tag (*[5])(float) |
| Date | 2015-04-02 00:37 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <mfhvei$8eo$1@dont-email.me> (permalink) |
| References | <mfhjtf$plc$1@dont-email.me> <551C65E3.8010903@verizon.net> <mfhpfk$g36$1@dont-email.me> <cotohattrq2loq8eqvj757qiuhkaorga1s@4ax.com> |
On 02/04/2015 00:01, Barry Schwarz wrote: > On Wed, 01 Apr 2015 22:55:50 +0100, Bartc <bc@freeuk.com> wrote: >>>> struct tag (*[5])(float) >> I could try and tell you what the above means, but it will a guess. >> Although I know the name goes just before the "*", because I tested my >> guess with a compiler. > > I think you guessed wrong. The name goes between the * and the [. I got it right before but without the working example in front of me, I forgot which way around it was. > Without the name, it specifies the type > array of five pointer-to-function > > Where each function pointed to > takes one argument of type float > returns a value of type struct tag > > With the name and a concluding ;, it would declare (and possibly > define) an array object of that type. I was way off the mark. I got that there was function taking a float argument involved, and an array of 5, a pointer, and a struct, but they weren't quite in the right order. Anyway I'm never going to understand why any language would choose to have type declarations written in Chinese (as they might as well be). -- Bartc
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
struct tag (*[5])(float) "James Harris" <james.harris.1@gmail.com> - 2015-04-01 21:17 +0100
Re: struct tag (*[5])(float) James Kuyper <jameskuyper@verizon.net> - 2015-04-01 17:40 -0400
Re: struct tag (*[5])(float) Bartc <bc@freeuk.com> - 2015-04-01 22:55 +0100
Re: struct tag (*[5])(float) Barry Schwarz <schwarzb@dqel.com> - 2015-04-01 16:01 -0700
Re: struct tag (*[5])(float) James Kuyper <jameskuyper@verizon.net> - 2015-04-01 19:29 -0400
Re: struct tag (*[5])(float) Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-04-02 05:28 -0700
Re: struct tag (*[5])(float) Bartc <bc@freeuk.com> - 2015-04-02 00:37 +0100
Re: struct tag (*[5])(float) Keith Thompson <kst-u@mib.org> - 2015-04-01 20:13 -0700
Re: struct tag (*[5])(float) Bartc <bc@freeuk.com> - 2015-04-02 10:30 +0100
Re: struct tag (*[5])(float) Keith Thompson <kst-u@mib.org> - 2015-04-02 15:18 -0700
Re: struct tag (*[5])(float) John Bode <jfbode1029@gmail.com> - 2015-04-02 15:22 -0700
csiph-web