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 an lvalue in c?
How does free() know explain how much memory to release?
Explain high-order and low-order bytes.
Explain the bubble sort algorithm.
Explain how do you convert strings to numbers in c?
What is data type long in c?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
What is a stream?
What are the 4 data types?
Once I have used freopen, how can I get the original stdout (or stdin) back?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
What kind of structure is a house?
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
What is the use of getchar() function?
simple program of graphics and their output display