DEV Community

3 Basic Steps of Executing Function Pointers in C

Rita Kairu on January 31, 2024

What Are Function Pointers? Function pointers point to functions instead of data such as variables. They are variables that store the ad...
Collapse
 
pauljlucas profile image
Paul J. Lucas

Functions via pointers can also be called without the (*).

And your main() function doesn't compile. (You should really compile all your examples.)

Collapse
 
thecodingcivilengineer profile image
Rita Kairu

Sure Paul!

First, I appreciate your feedback. I've corrected the code and it can now compile.

And yes, you're right, functions can also be called without the *. Read that after writing this article. Maybe I should edit to add more info on that.

Thanks