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 are local and global variables?
Write a c program to print the sizes and ranges of different data types in c?
Write a program to find the given number is odd or even without using any loops(if,for,do,while)
what do u mean by Direct access files? then can u explain about Direct Access Files?
What is register variable in c language?
HOW TO ANSWER IF ASKED " WHAT KIND OF A PERSON ARE YOU?" I NEED AN ANSWER THAT IMPRESS THE INTERVIEWER
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
Why can’t constant values be used to define an array’s initial size?
What is an object?
What is the Purpose of 'extern' keyword in a function declaration?
code for find determinent of amatrix
What is double pointer in c?