What is the difference between recursive function and call back function in C/C++

Can any one clarrify the  call back function?

Category: C & C++ 10 years ago
vivek
Asked 10 years ago

Like it on Facebook, Tweet it or share this question on other bookmarking websites.

Hi,


There is a minute difference between these two.


Recursive function means - a function that calls itself continuously until that(one)  condition fails.


There must be one exit condition for recursive function.


For Eg.: Factorial program.


Call Back function - Its same sa that of recursive funcion.


But it can call back according to the user's data, by providing appropriate information for the next execution. I


t may be an infinte loop function also.


In general both are same..


Recursion means calling itself again and again.

Babu
Answered 10 years ago
Babu

go to function
Aakash Agarwal
Answered 7 years ago
Aakash Agarwal

I too confused between both. According to me, Recursive is used to describe Itself and call back function is used for backward function.
DIPU S KUMAR
Answered 6 years ago
DIPU S KUMAR

Call back function is a goto function which is used backward.
recursion means the function called by itself.
Harsha
Answered 7 years ago
Harsha

I think,  many members, it seems have confusion in this regard including me. So better to Google search.

rambabu
Answered 3 years ago
rambabu

Can any one  explain about calll back function?


i am  having confusion that one.


 thanks in advance


 


 

vivek
Answered 10 years ago
vivek

Please register/login to answer this question.  Click here to login