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

What is ponter?

1224


Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

2245


Tell me the use of bit field in c language?

1016


How can you convert integers to binary or hexadecimal?

979


Write a program to swap two numbers without using the third variable?

1016


What are 3 types of structures?

1027


how should functions be apportioned among source files?

1058


What are register variables in c?

975


How is actual parameter different from the formal parameter?

973


Explain how can type-insensitive macros be created?

954


Explain pointers in c programming?

1063


What is the explanation for modular programming?

1148


Explain what are bus errors, memory faults, and core dumps?

1223


Difference between Shallow copy and Deep copy?

1969


Difference between macros and inline functions? Can a function be forced as inline?

1202