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
#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 |
What are the 4 types of organizational structures?
How can a program be made to print the name of a source file where an error occurs?
Where are local variables stored in c?
Explain can static variables be declared in a header file?
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
What are the 5 types of inheritance in c ++?
How can you find out how much memory is available?
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
What is the difference between array and pointer in c?
Write a program that receives as input a number omaadel-n-print, four digits.
What is a char in c?