cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
recursion
recursion
Sep 23, 2015 at 12:51pm UTC
garyfang
(9)
can some one show me an example how to convert the tail recursion back to the normal recursion?
I am really have a hard time
Write your question here.
Sep 23, 2015 at 8:37pm UTC
kbw
(9488)
normal recursion?
Sep 24, 2015 at 1:48am UTC
YFGHNG
(319)
I would guess "normal" recursion means head recursion. The main perceivable difference between these two types (in terms of code) is where you're putting the return statement of the recursive function.
http://www.danzig.us/cpp/recursion.html
Sep 25, 2015 at 6:04pm UTC
kbw
(9488)
There's an example on that link. But I don't see the point of all.
Sep 26, 2015 at 5:36am UTC
YFGHNG
(319)
I dunno. All I'm doing is providing @OP with a resource of the difference between tail end recursion and head recursion.
Topic archived. No new replies allowed.