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 is an lvalue in c?

916


How does free() know explain how much memory to release?

839


Explain high-order and low-order bytes.

897


Explain the bubble sort algorithm.

872


Explain how do you convert strings to numbers in c?

855


What is data type long in c?

851


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1745


What is a stream?

897


What are the 4 data types?

798


Once I have used freopen, how can I get the original stdout (or stdin) back?

856


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

2267


What kind of structure is a house?

799


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

1412


What is the use of getchar() function?

879


simple program of graphics and their output display

1731