Simplify complex declarations using typedef.
Hello to all. I have some complex declarations to simplify with typedef I have done a try
1.
Code:
char (*x[10]) (int);
/* typedef char FUNC(int);
typedef FUNC *FUNC_PTR;
FUNC_PTR x[10]; */
Why we don't use * symbol in the last statement in front of FUNC_PTR?
2.
I can't do this :/
3.
Code:
float *(*x(void))(int);
/* typedef float *FUNC(int);
FUNC *x(void); */
I have no way to see if I am right could you test my answers? and help me with the second? thank you :)