The addresses for each function in C can be passed as pointer to another function if required.
void bye(){
puts("goodbye");
}
void hello(void (*bye_func)() ){
bye_func();
}
int main(){
hello(bye);
}
The addresses for each function in C can be passed as pointer to another function if required.
void bye(){
puts("goodbye");
}
void hello(void (*bye_func)() ){
bye_func();
}
int main(){
hello(bye);
}