int f1(){}
int* f2(){}
int main()
{
int *a;//1
int b;
int *c;
a=c;
a=&b;
int (*p)(); //2
p=f2; //showing error
p=&f1;
}
I expected that in my program '2' must behave similar to '1'. Why function pointer are behaving differently. Or am I missing something?