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

What are different storage class specifiers in c?

1096


What is methods in c?

1101


What is the difference between procedural and declarative language?

1148


console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above

1181


Why c is called a middle level language?

1115


write a program in c language to print your bio-data on the screen by using functions.

6789


I just typed in this program, and it is acting strangely. Can you see anything wrong with it?

1016


What is wrong with this code?

1191


Write a code of a general series where the next element is the sum of last k terms.

1043


What is extern keyword in c?

1137


What is difference between array and pointer in c?

1098


Write a program to print fibonacci series without using recursion?

1146


Explain what is a program flowchart and explain how does it help in writing a program?

1100


When is a “switch” statement preferable over an “if” statement?

1154


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

2139