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