<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: 7.10 &#8212; Recursion</title>
	<atom:link href="http://www.learncpp.com/cpp-tutorial/710-recursion/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learncpp.com/cpp-tutorial/710-recursion/</link>
	<description></description>
	<pubDate>Fri, 29 Aug 2008 19:36:21 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/710-recursion/#comment-21667</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 24 Jul 2008 01:30:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/710-recursion/#comment-21667</guid>
		<description>Iterative functions (those using a for or while loop) are almost always more efficient than their recursive counterparts.  The reason for this is because every time you call a function there is some amount of overhead that takes place.  Iterative functions avoid this overhead.

That's not to say iterative functions are always a better choice.  Sometimes the recursive implementation of a function is so much cleaner and easier to follow that incurring a little extra overhead is more than worth it for the benefit in maintainability.</description>
		<content:encoded><![CDATA[<p>Iterative functions (those using a for or while loop) are almost always more efficient than their recursive counterparts.  The reason for this is because every time you call a function there is some amount of overhead that takes place.  Iterative functions avoid this overhead.</p>
<p>That&#8217;s not to say iterative functions are always a better choice.  Sometimes the recursive implementation of a function is so much cleaner and easier to follow that incurring a little extra overhead is more than worth it for the benefit in maintainability.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: khen</title>
		<link>http://www.learncpp.com/cpp-tutorial/710-recursion/#comment-20737</link>
		<dc:creator>khen</dc:creator>
		<pubDate>Fri, 11 Jul 2008 13:45:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/710-recursion/#comment-20737</guid>
		<description>hey,
I wanted to ask about the efficiency of Recursion versus using for loop or while.


btw: your articles are great! I enjoy very much to read.

thanks,
khen.</description>
		<content:encoded><![CDATA[<p>hey,<br />
I wanted to ask about the efficiency of Recursion versus using for loop or while.</p>
<p>btw: your articles are great! I enjoy very much to read.</p>
<p>thanks,<br />
khen.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ny</title>
		<link>http://www.learncpp.com/cpp-tutorial/710-recursion/#comment-19535</link>
		<dc:creator>ny</dc:creator>
		<pubDate>Sun, 22 Jun 2008 07:20:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/710-recursion/#comment-19535</guid>
		<description>void quiz(int i)
    {
        if (i &#62; 1)
        {
            quiz(i / 2);
	    quiz(i / 2);
        }
        cout &#60;&#60; "*";
    }

if quiz (5) ??? then how many time start printed?

get confused for this one.. 

how is going to solve step by step.. like u solved example one. .. ?</description>
		<content:encoded><![CDATA[<p>void quiz(int i)<br />
    {<br />
        if (i &gt; 1)<br />
        {<br />
            quiz(i / 2);<br />
	    quiz(i / 2);<br />
        }<br />
        cout &lt;&lt; &#8220;*&#8221;;<br />
    }</p>
<p>if quiz (5) ??? then how many time start printed?</p>
<p>get confused for this one.. </p>
<p>how is going to solve step by step.. like u solved example one. .. ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ny</title>
		<link>http://www.learncpp.com/cpp-tutorial/710-recursion/#comment-19534</link>
		<dc:creator>ny</dc:creator>
		<pubDate>Sun, 22 Jun 2008 07:12:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/710-recursion/#comment-19534</guid>
		<description>hay alex.. thanks lot man.. i know recursive function.. but after read this article.its so easy to solve recursive. now i completely understand recursive function. thanks lot

cheers</description>
		<content:encoded><![CDATA[<p>hay alex.. thanks lot man.. i know recursive function.. but after read this article.its so easy to solve recursive. now i completely understand recursive function. thanks lot</p>
<p>cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn C++ - &#187; 7.9 &#8212; The stack and the heap</title>
		<link>http://www.learncpp.com/cpp-tutorial/710-recursion/#comment-13495</link>
		<dc:creator>Learn C++ - &#187; 7.9 &#8212; The stack and the heap</dc:creator>
		<pubDate>Tue, 29 Apr 2008 05:05:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/710-recursion/#comment-13495</guid>
		<description>[...] 2007      Prev/Next Posts   &#171; 7.8 &#8212; Function Pointers &#124; Home &#124; 7.10 &#8212; Recursion &#187;     Friday, August 10th, 2007 at 4:56 [...]</description>
		<content:encoded><![CDATA[<p>[...] 2007      Prev/Next Posts   &laquo; 7.8 &#8212; Function Pointers | Home | 7.10 &#8212; Recursion &raquo;     Friday, August 10th, 2007 at 4:56 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/710-recursion/#comment-5865</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 11 Jan 2008 16:13:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/710-recursion/#comment-5865</guid>
		<description>I get that too occasionally.  I'm not sure why.  It seems to happen after doing something that causes a page reload (eg. making a post or a comment).  However, instead of reloading and redisplaying the page, it gets confused and tries to download the .php file.  I'm not sure if it's a browser issue or a PHP issue or a server issue.

Edit: I updated a plugin that may be the cause of this issue.  Let me know if you receive this error in the future.</description>
		<content:encoded><![CDATA[<p>I get that too occasionally.  I&#8217;m not sure why.  It seems to happen after doing something that causes a page reload (eg. making a post or a comment).  However, instead of reloading and redisplaying the page, it gets confused and tries to download the .php file.  I&#8217;m not sure if it&#8217;s a browser issue or a PHP issue or a server issue.</p>
<p>Edit: I updated a plugin that may be the cause of this issue.  Let me know if you receive this error in the future.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhishek</title>
		<link>http://www.learncpp.com/cpp-tutorial/710-recursion/#comment-5861</link>
		<dc:creator>Abhishek</dc:creator>
		<pubDate>Fri, 11 Jan 2008 14:38:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/710-recursion/#comment-5861</guid>
		<description>When I tried to add comment something called wp-comments-post.php got downloaded.Any problem?</description>
		<content:encoded><![CDATA[<p>When I tried to add comment something called wp-comments-post.php got downloaded.Any problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhishek</title>
		<link>http://www.learncpp.com/cpp-tutorial/710-recursion/#comment-5860</link>
		<dc:creator>Abhishek</dc:creator>
		<pubDate>Fri, 11 Jan 2008 14:35:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/710-recursion/#comment-5860</guid>
		<description>mind-blowing!</description>
		<content:encoded><![CDATA[<p>mind-blowing!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Souvik</title>
		<link>http://www.learncpp.com/cpp-tutorial/710-recursion/#comment-846</link>
		<dc:creator>Souvik</dc:creator>
		<pubDate>Tue, 04 Sep 2007 06:19:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/710-recursion/#comment-846</guid>
		<description>its NOT diff 2 ryt a fibo sequence iteratively :P !!!</description>
		<content:encoded><![CDATA[<p>its NOT diff 2 ryt a fibo sequence iteratively :P !!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karma</title>
		<link>http://www.learncpp.com/cpp-tutorial/710-recursion/#comment-464</link>
		<dc:creator>Karma</dc:creator>
		<pubDate>Sun, 19 Aug 2007 01:14:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/710-recursion/#comment-464</guid>
		<description>hi nice post, i enjoyed it</description>
		<content:encoded><![CDATA[<p>hi nice post, i enjoyed it</p>
]]></content:encoded>
	</item>
</channel>
</rss>
