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
What is a header file?
Differentiate between a for loop and a while loop? What are it uses?
How can my program discover the complete pathname to the executable from which it was invoked?
What is enumerated data type in c?
If I have a char * variable pointing to the name of a function ..
Can i use “int” data type to store the value 32768? Why?
Can a pointer point to null?
What is #pragma statements?
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
How many main () function we can have in a project?
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
can anyone please tell about the nested interrupts?
What’s the special use of UNIONS?
Find MAXIMUM of three distinct integers using a single C statement
Why do we use c for the speed of light?