Can we say "passing a function pointer as an argument to a function is called as callback function"?
views:
34answers:
1
Q:
Can we say "passing a function pointer as an argument to a function is called as callback function"?
+1
A:
That's pretty much the definition of a callback function.
In computer programming, a callback is a reference to executable code, or a piece of executable code, that is passed as an argument to other code.
jkramer
2010-08-25 13:58:10
So, if function accepts function pointer as an argument then that is alway called as callback function right?
Thangaraj
2010-08-25 14:06:06
The function that is referenced by the pointer you give to the other function is the callback function, not the function that takes the pointer as argument.
jkramer
2010-08-25 14:23:30
So, Can we put the sentence in this way, "simple function pointer is also called as an implementation of callback function and the function pointer referenced function is called callback function?"
Thangaraj
2010-08-25 14:32:10