int mul( int a, int b )
{ return a * b; }
int do_it( int (*func)( int, int ), int a, int b )
{
return func( a, b );
}
int main()
{
int (*function)( int, int ) = mul;
do_it( function, 42, 3 );
}
Hints:
int (*function)( int, int ) = mul; declares a variable named 'function' which is of type "pointer to function accepting two ints as parameters and returns int" and assigns it the address of the function 'mul'.