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 is the difference between strcpy() and memcpy() function in c programming?

0 Answers  


What is a buffer in c?

0 Answers  


What are qualifiers in c?

0 Answers  


ratio,age,persentage

0 Answers  


Hi can anyone tell what is a start up code?

0 Answers   CTS,






without using arithmatic operator solve which number is greater??????????

1 Answers   Accenture,


What is a program?

0 Answers  


main() { int i; printf("%d", &i)+1; scanf("%d", i)-1; }

1 Answers  


write a program in reverse the string without using pointer,array,global variable declaration,lib fun only using a function?

5 Answers   HCL,


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

0 Answers  


what is a constant pointer in C

0 Answers  


What are the 5 data types?

0 Answers  


Categories