Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!wasatch!utah-gr!uplherc!sp7040!obie!wsccs!dharvey From: dharvey@wsccs.UUCP (David Harvey) Newsgroups: comp.lang.c Subject: Re: Declaration puzzler (another old question?) Summary: If you know the answer??? Message-ID: <717@wsccs.UUCP> Date: 9 Oct 88 05:57:28 GMT References: <30091@oliveb.olivetti.com> Lines: 27 In article <30091@oliveb.olivetti.com>, chase@orc.olivetti.com (David Chase) writes: > I can't figure out how to declare the type of an array with (say) 10 > elements, each of which is that array type. That is, I want the > non-error effect of > > typedef foo *(foo[10]); > > I can succeed, however, if I wrap the array up in a structure, as in > [omitted rest] > > Oh well. Back to work. I don't know why I ask questions like this, > since I already know the answer. If you really know the answer, then illuminate the masses. Enquiring minds want to know. Seriously, what do you intend to use this type of structure for? An array of arrays that point to themselves? Hmm, methinks I smell some mischief. dharvey@wsccs tongue-in-cheek I am responsible for Nobody, and Nobody is responsible for me. The only thing you can know for sure, is that you can't know anything for sure.