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
How a string is stored in c?
What is else if ladder?
How variables are declared in c?
Hi can anyone tell what is a start up code?
Explain #pragma statements.
What is a method in c?
What are the types of pointers?
What is meant by realloc()?
differentiate built-in functions and user – defined functions.
What is the difference between union and anonymous union?
What is the explanation for cyclic nature of data types in c?
What is integer constants?
What is array of structure in c?
Can we declare variables anywhere in c?
What are near, far and huge pointers?