how to write a function as a parameter in c++ code example Example: c++ how to make function as argument void func ( void (*f)(int) );