Question: How can I create a "function pointer" (and (for example) the function has parameters) in C?

Answer: 
<http://www.newty.de/fpt/index.html>

```
typedef int (*MathFunc)(int, int);

int Add (int a, int b) {
    printf ("Add %d %d\n", a, b);
    return a + b; }

int Subtract (int a, int b) {
    printf ("Subtract %d %d\n", a, b);
    return a - b; }

int Perform (int a, int b, MathFunc f) {
    return f (a, b); }

int main() {
    printf ("(10 + 2) - 6 = %d\n",
            Perform (Perform(10, 2, Add), 6, Subtract));
    return 0; }

```
I found this site helpful when I was first diving into function pointers.

<http://www.newty.de/fpt/index.html>