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
Why n++ execute faster than n+1 ?
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
What is the total generic pointer type?
while initialization of array why we use a[][2] why not a[2][]...?
number of times a digit is present in a number
What is the purpose of & in scanf?
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
How is a null pointer different from a dangling pointer?
what value is returned to operating system after program execution?
What is a substring in c?
What does a function declared as pascal do differently?
What are the application of c?
What is the correct declaration of main?