When calling a function with a function parameter, the value passed must be a pointer to a function . Use the function’s name (without parentheses) for this: func(print); would call func , passing the print function to it.
When calling a function with a function parameter, the value passed must be a pointer to a function . Use the function’s name (without parentheses) for this: func(print); would call func , passing the print function to it.