Path: utzoo!utgpu!watmath!iuvax!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!paul From: paul@cs.utexas.edu (Supoj Sutanthavibul) Newsgroups: comp.lang.c Subject: type of function Keywords: type Message-ID: <813@lychee.cs.utexas.edu> Date: 17 Aug 89 22:07:29 GMT Organization: U. Texas CS Dept., Austin, Texas Lines: 34 How would one declare a function which returns a pointer to a function which return void? To clarify this question, here is an example. The question is: what is the type of get_func()? Or, how would it be declared in another function that calls it? void foo1() { ... } void foo2() { ... } . . . void fooN() { ... } get_func(which) int which; { if (... which ... ) return(foo1); ... else if (... which ... ) return(fooN); }