Array of functions

Walter Murray walter at hpclwjm.HP.COM
Tue Nov 21 05:19:13 AEST 1989


Norman Diamond writes:

> Section 3.5.4.2 does not attempt to prohibit a declaration of the form
>   extern int f[3]();  /* array of 3 functions, each returning int */
> What shall be the meaning of such a declaration?

Behavior is undefined because it's an erroneous program construct.
Section 3.1.2.5 disallows arrays of functions.

Walter Murray
----------



More information about the Comp.std.c mailing list