Function Declarations

Richard Draves draves at harvard.ARPA
Thu Dec 13 08:14:28 AEST 1984


Is this a legal function declaration?

int (a)();

What about

typedef int func();

func main
{
}

The first declaration I believe should be legal, although
our 4.2BSD cc does not accept.  The second declaration
we both dislike.

Rich



More information about the Comp.lang.c mailing list