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 |
write a program to find the sum of the array elements in c language?
24 Answers ICT, Infosys, Wipro,
What do you mean by a sequential access file?
When should the const modifier be used?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it
Why is conio.h not required when we save a file as .c and use clrscr() or getch() ?
enum DAY { sunday, monday, tuesday }; enum EDAYS { friday, saturday, sunday }; void main() { int i =0; if( i == sunday) { printf("%d",i); } } what would be the output?
Is printf a keyword?
Is register a keyword in c?
Difference between fopen() and open()?
name the language for writing c compiler?
What’s a signal? Explain what do I use signals for?
Explain c preprocessor?