> With Javascript you can declare functions as variables, pass functions as arguments to other functions, return functions as the result of other functions, and use them as part of a data structure.
I'm pretty sure you can do all of those things with function pointers in C. void (*func)(void), for example.
Comments
> With Javascript you can declare functions as variables, pass functions as arguments to other functions, return functions as the result of other functions, and use them as part of a data structure.
I'm pretty sure you can do all of those things with function pointers in C. void (*func)(void), for example.