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
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
Explain the difference between #include "..." And #include <...> In c?
What is use of pointer?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
How can you increase the size of a dynamically allocated array?
What is scanf () in c?
Explain what are multibyte characters?
How can you be sure that a program follows the ANSI C standard?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
Is anything faster than c?
Write a program to print fibonacci series using recursion?
What is the difference between c and python?
How many main () function we can have in a project?
Why are all header files not declared in every c program?
What is the difference between class and object in c?