--- In [email protected], Thomas Hruska <thru...@...> wrote: > > Bill Cunningham wrote: > > I would like to start writing code and calling functions in C > > code with a pointer to a function. This so I can learn functions pointers. > > What is it you specifically want to know? > [snip]
I want a generic pointer firstly. They also say that you can use a function pointer to get a functions return value from functions that you don't know the name of. It's just a learning tool I thought I'd try. I have this. But of course I know the name of the function in this case. I use mostly C. int func(int num); void (*pf)(int num); /* Is a parameter required? */ pf=func; /*here's where I know the name of the function */ pf(2) func(2); Bill
