R
raj_iv
typedef function pointers
typedef int (*pFunc1) (int, int);
typedef int (*)(int,int) pFunc2;
pFunc1 p1; // This is OK
pFunc2 p2; // This is wrong
Why is the second way of typedef invalid, any specific reasons?
typedef int (*pFunc1) (int, int);
typedef int (*)(int,int) pFunc2;
pFunc1 p1; // This is OK
pFunc2 p2; // This is wrong
Why is the second way of typedef invalid, any specific reasons?