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 null pointer constant?
write a program to generate 1st n fibonacci prime number
What is the difference between mpi and openmp?
develop algorithms to add polynomials (i) in one variable
Program to find largest of three numbers without using comparsion operator?
What will be your course of action for a push operation?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
in one file global variable int i; is declared as static. In another file it is extern int i=100; Is this valid ?
Why doesnt the call scanf work?
Can a file other than a .h file be included with #include?
Why doesnt that code work?
Mention four important string handling functions in c languages .