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 use of call back function in c?tell me with
example

Answer Posted / kapil sharma

callback function as the name suggest is basically a
function which gets called at the run time. it is a
reference to the executable code or a part of executable
code which is passed as an argument to another function.
for e.g if we want to forcefully terminate a program but if
there is some essential data which will get lost if program
gets terminated instantly.in that case writing a callback is
always a good deal.
---before writing a callback function you must have
knowledge of function pointers.

Is This Answer Correct ?    7 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1835


shorting algorithmS

2256


How can I read in an object file and jump to locations in it?

1033


Explain how do you list a file’s date and time?

1041


Explain what is the difference between null and nul?

1159


How would you use the functions fseek(), freed(), fwrite() and ftell()?

1166


How do we open a binary file in Read/Write mode in C?

1242


provide an example of the Group by clause, when would you use this clause

2199


Explain what is the benefit of using #define to declare a constant?

1194


What is structure padding and packing in c?

1073


What is the difference between NULL and NUL?

1295


Differentiate between static and dynamic modeling.

1133


How can I read a binary data file properly?

1178


What are enums in c?

1208


Why c is known as a mother language?

1087