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 |
Do character constants represent numerical values?
How to find a missed value, if you want to store 100 values in a 99 sized array?
Why can't we initialise member variable of a strucutre
What is main void in c?
my name is nani i completed my b-tech in hyd now i want go for interveiw but i dont know the process of software field interveiws plz help me anyone how many rouds there n what rounds plz plz plz help me n where i can get these details
How is actual parameter different from the formal parameter?
write a program to arrange the contents of a 1D array in ascending order
Why c is a mother language?
f() { int a=2; f1(a++); } f1(int c) { printf("%d", c); } c=?
Write a program for deleting duplicate elements in an array
write a program which will count occurance of a day between two dates.
Write a program to print ASCII code for a given digit.