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

What are structure members?

600


What does stand for?

599


What is selection sort in c?

612


What does 3 periods mean in texting?

601


What is 1d array in c?

602






A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile

649


How can I find the modification date and time of a file?

605


Explain the use of 'auto' keyword in c programming?

684


How can I write functions that take a variable number of arguments?

627


Sir i need notes for structure,functions,pointers in c language can you help me please

1947


to find the closest pair

1824


What is structure in c explain with example?

641


How does pointer work in c?

622


Why do we use pointer to pointer in c?

600


hi, which software companys will take,if d candidate's % is jst 55%?

1666