R
robin liu
What's the difference between these two declarations ?
1) typedef void (*pf)(void);
2) typedef void f(void);
the first declaration is define a function pointer, what is the second ?
define a function model?
And can use the second declaration to define a function pointer as follow:
typedef void f(void);
f *pf;
Whether the two declarations of pf1 are both pointer to a function?
1) typedef void (*pf)(void);
pf pf1;
2) typedef void f(void);
f *pf1;
if yes, which is better? and I saw many codes used the second declaration,
what is its' advantage or disadvantage?
Thanks in advance!
(e-mail address removed) from china
1) typedef void (*pf)(void);
2) typedef void f(void);
the first declaration is define a function pointer, what is the second ?
define a function model?
And can use the second declaration to define a function pointer as follow:
typedef void f(void);
f *pf;
Whether the two declarations of pf1 are both pointer to a function?
1) typedef void (*pf)(void);
pf pf1;
2) typedef void f(void);
f *pf1;
if yes, which is better? and I saw many codes used the second declaration,
what is its' advantage or disadvantage?
Thanks in advance!
(e-mail address removed) from china