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
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
shorting algorithmS
How can I read in an object file and jump to locations in it?
Explain how do you list a file’s date and time?
Explain what is the difference between null and nul?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
How do we open a binary file in Read/Write mode in C?
provide an example of the Group by clause, when would you use this clause
Explain what is the benefit of using #define to declare a constant?
What is structure padding and packing in c?
What is the difference between NULL and NUL?
Differentiate between static and dynamic modeling.
How can I read a binary data file properly?
What are enums in c?
Why c is known as a mother language?