Path: utzoo!utgpu!watmath!clyde!att!pacbell!ames!mailrus!bbn!inmet!ishmael!inmet!rgh From: rgh@inmet Newsgroups: comp.lang.c Subject: Re: help with a MESSY C definition!!? Message-ID: <124200013@inmet> Date: 19 Nov 88 06:02:00 GMT References: <207600008@s.cs.uiuc.edu> Lines: 18 Nf-ID: #R:s.cs.uiuc.edu:207600008:inmet:124200013:000:517 Nf-From: inmet!rgh Nov 19 01:02:00 1988 >I need the syntax of definition for an array (of arbitrary size) of pointers to >functions returning pointers to integer (HOW'S *THAT* FOR A DOOZY!!!). My >closest (possibly correct) guess follows: > > int *(*opfuncs[])() = { . . . }; > > I would appreciate any corrections/verifications. It looks correct to me. What I would recommend, though, would be something like: typedef int * (*opfunc_t)(); opfunc_t opfuncs[] = { . . . }; Divide and conquer. Randy Hudson rgh@inmet.inmet.com uunet!inmet!rgh