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


Please Help Members By Posting Answers For Below Questions

What are valid signatures for the Main function?

955


Explain what are linked list?

808


What are the types of assignment statements?

830


What is the symbol indicated the c-preprocessor?

949


Explain how do you sort filenames in a directory?

810


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)

2100


What is the purpose of void in c?

799


Describe dynamic data structure in c programming language?

823


How can I write functions that take a variable number of arguments?

854


What is an auto variable in c?

970


Write a program to print numbers from 1 to 100 without using loop in c?

864


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

980


Why are all header files not declared in every c program?

823


Explain what is dynamic data structure?

883


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

2797