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

What is Function Pointer? Explain with example?

Answer Posted / sanjay bhosale

function pointer is simply a pointer which holds the address of the function so we can call that function by using pointer.
It is helpful in situations where we are required to pass the function pointer as parameter to some previously defined functions.
for e.g.
in comparison method we may pass function pointer for function which will compare 2 items/objects and help to comparison method.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Combinations of fibanocci prime series

1618


What are preprocessor directives in c?

1102


What does it mean when a pointer is used in an if statement?

1107


Why is main function so important?

1107


Why is c used in embedded systems?

1120


any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above

1124


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

1018


What is getch c?

1300


What is identifiers in c with examples?

1180


Write a simple code fragment that will check if a number is positive or negative.

1155


How can I remove the trailing spaces from a string?

1074


p*=(++q)++*--p when p=q=1 while(q<=6)

1762


What is the use of f in c?

978


Explain the difference between strcpy() and memcpy() function?

1003


Why do we use null pointer?

1065