🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #978

Re: Array of functions

#978
From: Walter Murray
Date: Mon, 20 Nov 1989 18:19
11 lines
741 bytes
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
----------
Technical Details
Message-ID: <12570033@hpclwjm.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!usc!apple!motcsd!hpda!hpcuhb!hpcllla!hpclisp!hpclwjm!walter
References: <11145@riks.csl.sony.co.jp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!usc!apple!motcsd!hpda!hpcuhb!hpcllla!hpclisp!hpclwjm!walter
From: walter@hpclwjm.HP.COM (Walter Murray)
Newsgroups: comp.std.c
Subject: Re: Array of functions
Message-ID: <12570033@hpclwjm.HP.COM>
Date: 20 Nov 89 18:19:13 GMT
References: <11145@riks.csl.sony.co.jp>
Organization: Hewlett-Packard Calif. Language Lab
Lines: 11