Why the assignment without '&' is compiling in the following code? I compiled the code with GCC 3.4.6. Is it right to assign without &, or this is a "feature" of GCC?
void func() {
}
int main() {
typedef void (*F)();
F f;
f = &func; // the way of assigning pointer to function.
f = func; // this is also working.
(*f)();
return 0;
}