Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!hc!lanl!opus!mleisher From: mleisher@nmsu.edu (Mark Leisher) Newsgroups: comp.lang.c++ Subject: Passing array of function pointers Message-ID: Date: 12 Apr 89 16:57:42 GMT Sender: news@nmsu.edu Distribution: comp.lang.c++ Organization: NMSU Computer Science Lines: 24 Can anyone tell me what is wrong with this: void junk( int a, int b ) { cout << a << "\n" << b; } void fill( (*f[])(int, int) ) { int i; for ( i = 0; i < 128; i++ ) f[i] = junk; } main() { void (*func_tbl[128])(int, int); fill( func_tbl ); } Mark Leisher New Mexico State University mleisher@nmsu.edu