How do I declare an array of N pointers to functions
returning pointers to functions returning pointers to
characters?
Answers were Sorted based on User's Feedback
Answer / kar4you
Answer: We have a three ways for declaring techniques:
1. char *(*(*a[P])())();
2. Build the declaration up in stages, using
typedefs:
typedef char *pc; /* pointer to char */
typedef pc fpc(); /* return function pointer to char */
typedef fpc *pfpc; /* pointer to above */
typedef pfpc fpfpc(); /* returning function */
typedef fpfpc *pfpfpc; /* pointer to*/
pfpfpc a[P]; /* array of*/
3. Use the cdecl program, which turns English into C and
vice versa:
cdecl> declare a as array of pointer to function returning
pointer to function returning pointer to char
char *(*(*x[])())()
Is This Answer Correct ? | 6 Yes | 1 No |
What is the difference between strcpy() and memcpy() function in c programming?
What is a buffer in c?
What are qualifiers in c?
ratio,age,persentage
Hi can anyone tell what is a start up code?
without using arithmatic operator solve which number is greater??????????
What is a program?
main() { int i; printf("%d", &i)+1; scanf("%d", i)-1; }
write a program in reverse the string without using pointer,array,global variable declaration,lib fun only using a function?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
what is a constant pointer in C
What are the 5 data types?