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 return..

Answer / raj kumar

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

Is This Answer Correct ?    13 Yes 2 No

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

Answer / vijay zanvar

#include <stdio.h>

/*
* How do I declare an array of N pointers to functions
* returning pointers to functions
* returning pointers to characters?
*/
int
main()
{
typedef char *f1();
typedef f1 *(*f2[4])();
return 0;
}


Best,
Vijay Zanvar,
Home Page - http://geocities.com/vijoeyz/

Is This Answer Correct ?    8 Yes 3 No

Post New Answer

More C Interview Questions

What are the 4 types of organizational structures?

0 Answers  


How can a program be made to print the name of a source file where an error occurs?

0 Answers  


Where are local variables stored in c?

0 Answers  


Explain can static variables be declared in a header file?

0 Answers  


what will be the result of the following program ? char *gxxx() { static char xxx[1024]; return xxx; } main() { char *g="string"; strcpy(gxxx(),g); g = gxxx(); strcpy(g,"oldstring"); printf("The string is : %s",gxxx()); } a) The string is : string b) The string is :Oldstring c) Run time error/Core dump d) Syntax error during compilation e) None of these

2 Answers   IBM,






What are the 5 types of inheritance in c ++?

0 Answers  


How can you find out how much memory is available?

0 Answers  


What are Storage Classes in C ?

32 Answers   CTS, HP, IBM, Maharaja Whiteline, Tamil Nadu Open University TNOU, TATA, TCS, Wipro,


write a program for 7*8 = 56 ? without using * multiply operator ? output = 56

6 Answers   Xavient,


What is the difference between array and pointer in c?

0 Answers  


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

0 Answers  


What is a char in c?

0 Answers  


Categories