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
Without Computer networks, Computers will be half the use. Comment.
What is the function of multilevel pointer in c?
What is union and structure?
How many types of operator or there in c?
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?
What does the error 'Null Pointer Assignment' mean and what causes this error?
What is the ANSI C Standard?
Is null always equal to 0(zero)?
Is it fine to write void main () or main () in c?
How do you determine whether to use a stream function or a low-level function?
How do you search data in a data file using random access method?
What is #include stdlib h?
Explain the difference between ++u and u++?
How would you rename a function in C?
Do pointers take up memory?