icp/oer/courses/c-basics/sections/10-pointer/07-function-pointer/content.html

6 lines
313 B
HTML

<p>
Pointers may also point to functions. This way we can work with functions in a generic way.
To declare a function pointer you still have to use the *-operator. But you also have to write the expected
parameters in parentheses behind the name like this:<code>return-type (*name)(parameters);</code>
</p>