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
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 |
Multiply an Integer Number by 2 Without Using Multiplication Operator
Q.11 Generate the following pattern using code in any language(c/c++/java) for n no. of rows 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1
How are 16- and 32-bit numbers stored?
Program to find the sum of digits of a given number until the sum becomes a single digit
what is output? main() { #define SQR(x) x++ * ++x int i = 3; printf(" %d %d ",SQR(i),i * SQR(i)); } a)9 27 b)35 60 c)20 60 d)15 175
Explain how can you restore a redirected standard stream?
What is c++ used for today?
how to find a 5th bit is set in c program
21. #define square(x) x*x main() { int i; i = 64/square(4); printf("%d",i); }
what information does the header files contain?
6 Answers BSNL, Cisco, GDA Technologies,
what is the difference between these initializations? Char a[]=”string”; Char *p=”literal”; Does *p++ increment p, or what it points to?
we compile c program in 32 processor and 64 bit processor .exe file is created in both the processors. if we want to run .exe file in 64 bit processor which is created in 32 bit processor. is that .exe file is run or not if it is not run why?