what is the difference between recursion and iteration?
shanki himanshu 27 Light Poster
Recommended Answers
Jump to PostIteration is (in essence) just looping.
Recursion is something going back into or calling itself.Recursion can cause Iteration.
[Recursion vs. Iteration]
http://en.wikipedia.org/wiki/Recursion_(computer_science)#Recursion_versus_iteration
Jump to Postrecursion is calling a function itself and in a function we have set of statements. does this means it is iteration??
Do you think it's a basic question now? Muahahahaha!!! :D
Let's make it simple: Iteration is an explicit loop using one of C's loop constructs (for, while, do..while[1]). …
All 8 Replies
thines01 401 Postaholic Team Colleague Featured Poster
sergent 52 Posting Pro
sergent 52 Posting Pro
sharathg.satya -10 Posting Whiz in Training
shanki himanshu 27 Light Poster
Narue 5,707 Bad Cop Team Colleague
TrustyTony 888 ex-Moderator Team Colleague Featured Poster
sharathg.satya -10 Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.