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

#include<stdio.h> main() { int a[3]; int *I; a[0]=100;a[1]=200;a[2]=300; I=a; Printf(“%d\n”, ++*I); Printf(“%d\n”, *++I); Printf(“%d\n”, (*I)--); Printf(“%d\n”, *I); } what is the o/p a. 101,200,200,199 b. 200,201,201,100 c. 101,200,199,199 d. 200,300

4 Answers   Tieto,


What is uint8 in c?

0 Answers  


Please list all the unary and binary operators in C.

3 Answers  


What is console in c language?

0 Answers  


how to print "hai" in c?

13 Answers   TCS,






What are two dimensional arrays alternatively called as?

0 Answers  


Which is an example of a structural homology?

0 Answers  


What are pointers? What are stacks and queues?

0 Answers   Hexaware,


Write a program which take a integer from user and tell whether the given variable is squar of some number or not. eg: is this number is 1,4,9,16... or not

9 Answers   Alcatel,


how to print this sereis 2 4 3 6 5..........?

3 Answers  


In C, What is the #line used for?

2 Answers  


#define MAX 3 main() { printf("MAX = %d \n",MAX ); #undef MAX #ifdef MAX printf("Vector Institute”); #endif

4 Answers   IBM, Vector,


Categories