How do I declare an array of N pointers to functions
returning pointers to functions returning pointers to
characters?
Answer Posted / 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 |
Post New Answer View All Answers
Explain can the sizeof operator be used to tell the size of an array passed to a function?
Tell us something about keyword 'auto'.
Are comments included during the compilation stage and placed in the EXE file as well?
How to compare array with pointer in c?
Explain a pre-processor and its advantages.
Write a program to swap two numbers without using third variable in c?
Describe the order of precedence with regards to operators in C.
How can I manipulate individual bits?
write a program to concatenation the string using switch case?
c program to compute AREA under integral
what is bit rate & baud rate? plz give wave forms
Write a program which returns the first non repetitive character in the string?
Explain how can I remove the trailing spaces from a string?
Explain the use of keyword 'register' with respect to variables.
What is the use of clrscr?