I am trying to understand all this HUGE concept of function pointers...
Is it possible to initalize function pointer with non-declared function?
For example, a simple use of function pointer would be:
void f()
{
printf("Hello world!");
}
//Somewhere in the program
void (*foo)();
foo = &f;
Is there any way to skip the declaration of f? something like that:
void (*foo)();
foo = { printf("Hello world!"); }