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

Does c have class?

1107


what will be the output for the following main() { printf("hi" "hello"); }

10988


What is a nested loop?

1120


What are directives in c?

970


Why do we use return in c?

994


What is null pointer in c?

985


Why header files are used?

1118


What are qualifiers and modifiers c?

1003


How can I read a binary data file properly?

1160


What is the purpose of sprintf() function?

1117


Explain what is operator promotion?

1084


Difference between constant pointer and pointer to a constant.

1135


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2445


What is uint8 in c?

1102


What is the use of parallelize in spark?

1027