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

Explain following declaration
int *P(void);
and
int (*p)(char *a);

Answer Posted / binod adhikari

int *p(void)
Here p is a pointer function with no arguments. int *p means p is a pointer function which has to return an memory address of integer type to the called function (i.e. where the pointer function p has been called). (void) means function p does not have any argument.

int *p(char *a);
Here p is a pointer function with one pointer arguments of character type. The called function (i.e. where the pointer function p has been called) pass the memory address of the character variable to pointer function p since it has char *a argument. p is a pointer function so, it has to return an memory address of integer type to the called function.

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

2194


what is the structure pointer?

2083


What is the difference between near, far and huge pointers?

1040


Explain what are multidimensional arrays?

1015


a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler

1035


What should malloc() do? Return a null pointer or a pointer to 0 bytes?

1027


Write a C program in Fibonacci series.

1053


How is a null pointer different from a dangling pointer?

980


Is there any demerits of using pointer?

1024


Explain what’s a signal? Explain what do I use signals for?

1072


Explain the priority queues?

1046


Explain how do I determine whether a character is numeric, alphabetic, and so on?

1095


What are the back slash character constants or escape sequence charactersavailable in c?

1139


What are the characteristics of arrays in c?

996


Which is the best website to learn c programming?

1045