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 ?    5 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

HOW CAN ADD OUR FUNCTION IN LIBRARY.

5 Answers  


Write a program that receives as input a number omaadel-n-print, four digits.

0 Answers  


Why we not create function inside function.

0 Answers  


What is the meaning of this decleration? unsigned char (*pArray[10][10]); please reply.

1 Answers  


Write an algorithm for a program that receives an integer as input and outputs the product of of its digits. E.g. 1234 = 24, 705 = 0

4 Answers  






what is the disadvantage of using macros?

1 Answers   Wipro,


How. To pass the entrance test

1 Answers   Tech Mahindra,


why u join this call center?

6 Answers   DELL,


suppose there are five integers write a program to find larger among them without using if- else

2 Answers  


how to implement stack work as a queue?

2 Answers  


How to find the digits truncation when assigning the interger variable to the character variables. like int i=500; char x = i : here we have truncation. how to find this. another ex: i =100; char x=i. here we do not have truncation.

1 Answers   HCL,


main() { printf(5+"good morning"); printf("%c","abcdefgh"[4]); }the o/p is morning and e...how someone explain

1 Answers  






Categories