Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site alice.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!alice!ark From: ark@alice.UUCP (Andrew Koenig) Newsgroups: net.lang.c Subject: Re: Array of pointers to functions Message-ID: <3610@alice.UUCP> Date: Sun, 21-Apr-85 15:04:47 EST Article-I.D.: alice.3610 Posted: Sun Apr 21 15:04:47 1985 Date-Received: Mon, 22-Apr-85 02:28:05 EST References: <243@osiris.UUCP> Organization: Bell Labs, Murray Hill Lines: 17 > A programmer here was wondering how you would declare an > array of pointers to functions returning pointers to > integers. I've been able to generate code producing a > single pointer to a function returning a pointer to an > integer, as > int *(*fp_ret_ip)(); > but I've been unable to get the C compiler to accept an > array version of this. Declare 'em like you use 'em: int *(*fp_ret_ip[10])(); This works just fine on my compiler; if it doesn't on yours, maybe your compiler is broken.