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



How do I declare an array of N pointers to functions returning pointers to functions returning poi..

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

How do I declare an array of N pointers to functions returning pointers to functions returning poi..

Answer / ashutosh tiwari

char *(*(*a[N])())();

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More C Interview Questions

What are local and global variables?

3 Answers  


Write a c program to print the sizes and ranges of different data types in c?

1 Answers  


Write a program to find the given number is odd or even without using any loops(if,for,do,while)

4 Answers   CNC, Gokul,


what do u mean by Direct access files? then can u explain about Direct Access Files?

0 Answers   LG Soft,


What is register variable in c language?

0 Answers  






HOW TO ANSWER IF ASKED " WHAT KIND OF A PERSON ARE YOU?" I NEED AN ANSWER THAT IMPRESS THE INTERVIEWER

4 Answers  


What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?

0 Answers  


Why can’t constant values be used to define an array’s initial size?

0 Answers  


What is an object?

5 Answers  


What is the Purpose of 'extern' keyword in a function declaration?

0 Answers  


code for find determinent of amatrix

0 Answers  


What is double pointer in c?

0 Answers  


Categories