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 are valid signatures for the Main function?
Explain what are linked list?
What are the types of assignment statements?
What is the symbol indicated the c-preprocessor?
Explain how do you sort filenames in a directory?
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)
What is the purpose of void in c?
Describe dynamic data structure in c programming language?
How can I write functions that take a variable number of arguments?
What is an auto variable in c?
Write a program to print numbers from 1 to 100 without using loop in c?
The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none
Why are all header files not declared in every c program?
Explain what is dynamic data structure?
Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff