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 / dwight schrute

suppose u have 2 files:

file1 has following functions:
A1
B1
C1

file12 has following functions:
A2
B2
C2

scenario:
A1 needs to use A2 in turn A2 needs to use B1.
A1 invokes A2;
A2 invokes B1;

for B1 to be available in file2 either shld be extern or in
header file which in turn exposes it to entire file2.
In order to minimize this exposure "pass B1 as a functional
pointer to A2".

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do array subscripts always start with zero?

1370


What is .obj file in c?

1134


Is there any demerits of using pointer?

1124


What is structure pointer in c?

1095


What is the size of structure pointer in c?

1122


What is the value of c?

1133


What is c preprocessor mean?

1375


How do you write a program which produces its own source code as output?

1175


How to find a missed value, if you want to store 100 values in a 99 sized array?

1465


What is an array? What the different types of arrays in c?

1257


Difference between linking and loading?

1157


How can I rethow can I return a sequence of random numbers which dont repeat at all?

1241


Which is better oop or procedural?

1134


On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area

1170


What does the characters “r” and “w” mean when writing programs that will make use of files?

1545