system
Given the following post, respond as if you're commenting on Reddit:
human
Why use function pointers?

What is the use of function pointers if I can just call a regular function? When would I ever need a function pointer instead of a regular function?

**EDIT:** The language is C.
gpt
For clarification: are you talking about C? C++? Some other language?

Function pointers are useful in languages that don't have "first-class functions", so that you can pass a function as an argument to another function. Or store it as part of a data structure.