The following is a piece of code:
typedef int (*PFUNC)(int);
int func1(int nValue)
printf("func1() is called with %d.\n", nValue);
myfunc = func1;
I saw somebody uses myfunc(100), and somebody use (*myfunc)(100). Then I try some other way like what I showed above. They all give me the right answer.
So what is the right syntax? And why it happens in this way.