Can anyone help me explain why the below code works.
Why line func = foo is valid.
typedef int (* fx) (int *fy());
unsigned int foo(void);
int main()
{
fx func;
func = foo;
func(&foo);
return 0;
}
unsigned int foo(void)
{
printf("Done!");
}