Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How do I declare an array of N pointers to functions
returning pointers to functions returning pointers to
characters?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

2147


Explain the difference between #include "..." And #include <...> In c?

987


What is use of pointer?

1013


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

3262


How can you increase the size of a dynamically allocated array?

1137


What is scanf () in c?

1058


Explain what are multibyte characters?

1114


How can you be sure that a program follows the ANSI C standard?

1564


What is the time and space complexities of merge sort and when is it preferred over quick sort?

1016


Is anything faster than c?

971


Write a program to print fibonacci series using recursion?

1011


What is the difference between c and python?

1109


How many main () function we can have in a project?

1066


Why are all header files not declared in every c program?

1045


What is the difference between class and object in c?

1094