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 the advantage of function pointer

Answer Posted / tahir ali

As you probably learned in your first programming courses,
pointers to variables allows you to modify variable contents
from a non-local environment. This gives the flexibility of
writing generic functions which do not alter "known" global
variables, but references to "unknown" variables. Such
functions can be reused. Function pointers gives you the
same flexibility, but at a higher level. Instead of calling
a "known" function, one can call any arbitrary "unknown"
function. This is the main advantage of function pointers:
greater flexibility and better code reuse.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is c not oop?

980


code for quick sort?

2033


Tell me what is null pointer in c?

1082


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

2021


Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)

6875


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

2159


What is a function simple definition?

1097


What is the function of this pointer?

1343


What is difference between main and void main?

1214


How can I recover the file name given an open stream or file descriptor?

1082


What is echo in c programming?

1029


what are non standard function in c

1914


What is the difference between declaring a variable and defining a variable?

1279


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

2099


How can I access an I o board directly?

1093