R
Rahul
Hi,
I want to write an array of pointer to function "which takes an array
of function pointer of type "int fun(int)" and returns a fptr of same
type
The following works well
typedef int (*fp)(int);
fp (*newFp[5]) (fp [5]);
But when I try to inline the typedefs then it gives me compilation
error in VC++ 2010 saying " syntax error : ')'"
int (*)(int) (*newFp[5]) ( int (*[5]) (int) )
How do I inline the declarations to remove the typedef (its not
required but am asking just out of curiosity)
Thanks in advance
Rahul
I want to write an array of pointer to function "which takes an array
of function pointer of type "int fun(int)" and returns a fptr of same
type
The following works well
typedef int (*fp)(int);
fp (*newFp[5]) (fp [5]);
But when I try to inline the typedefs then it gives me compilation
error in VC++ 2010 saying " syntax error : ')'"
int (*)(int) (*newFp[5]) ( int (*[5]) (int) )
How do I inline the declarations to remove the typedef (its not
required but am asking just out of curiosity)
Thanks in advance
Rahul