DEV Community

Discussion on: 3 Basic Steps of Executing Function Pointers in C

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