<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Fibonacci in C</title>
	<atom:link href="http://www.zacharyfox.com/blog/fibonacci-project/fibonacci-in-c/feed" rel="self" type="application/rss+xml" />
	<link>http://www.zacharyfox.com/blog/fibonacci-project/fibonacci-in-c</link>
	<description></description>
	<lastBuildDate>Sat, 22 Oct 2011 10:44:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Manu</title>
		<link>http://www.zacharyfox.com/blog/fibonacci-project/fibonacci-in-c/comment-page-1#comment-71871</link>
		<dc:creator>Manu</dc:creator>
		<pubDate>Fri, 05 Aug 2011 09:14:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.zacharyfox.com/blog/fibonacci-project/fibonacci-in-c#comment-71871</guid>
		<description>I compiled one in C which generates upto 10 digits.


#include 

int main(void)
{
    int i = 1, sum = 0;

    printf(&quot;%d\n%d\n&quot;, 1,1);
    while (i &lt;= 999999999) {
        sum = i - sum;
        i = i + sum;
        printf(&quot;%d\n&quot;, i);
    }
    return 0;
}</description>
		<content:encoded><![CDATA[<p>I compiled one in C which generates upto 10 digits.</p>
<p>#include </p>
<p>int main(void)<br />
{<br />
    int i = 1, sum = 0;</p>
<p>    printf(&#8220;%d\n%d\n&#8221;, 1,1);<br />
    while (i &lt;= 999999999) {<br />
        sum = i &#8211; sum;<br />
        i = i + sum;<br />
        printf(&quot;%d\n&quot;, i);<br />
    }<br />
    return 0;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ahmad Hazim</title>
		<link>http://www.zacharyfox.com/blog/fibonacci-project/fibonacci-in-c/comment-page-1#comment-49794</link>
		<dc:creator>Ahmad Hazim</dc:creator>
		<pubDate>Thu, 17 Mar 2011 11:49:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.zacharyfox.com/blog/fibonacci-project/fibonacci-in-c#comment-49794</guid>
		<description>Hello, Thanks for this simple program... It is truly helpful and very effective. But there is something missing... This code will not run properly because the main() function is not able to access the fibonacci() function because the C++ compiler works sequentially and so the main() function is declared before the fibonacci(). The missing point is that you should add a forward declaration for fibonacci() as following:

/** forward declaration for fibonacci() */
int fibonacci();

/** main() */
int main() {
       // the main() function code
}

/** fibonacci() code */
int fibonacci() {
       // the fibonacci() function code definition goes here
}

Best regards</description>
		<content:encoded><![CDATA[<p>Hello, Thanks for this simple program&#8230; It is truly helpful and very effective. But there is something missing&#8230; This code will not run properly because the main() function is not able to access the fibonacci() function because the C++ compiler works sequentially and so the main() function is declared before the fibonacci(). The missing point is that you should add a forward declaration for fibonacci() as following:</p>
<p>/** forward declaration for fibonacci() */<br />
int fibonacci();</p>
<p>/** main() */<br />
int main() {<br />
       // the main() function code<br />
}</p>
<p>/** fibonacci() code */<br />
int fibonacci() {<br />
       // the fibonacci() function code definition goes here<br />
}</p>
<p>Best regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aron N</title>
		<link>http://www.zacharyfox.com/blog/fibonacci-project/fibonacci-in-c/comment-page-1#comment-15247</link>
		<dc:creator>Aron N</dc:creator>
		<pubDate>Wed, 27 Jan 2010 14:02:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.zacharyfox.com/blog/fibonacci-project/fibonacci-in-c#comment-15247</guid>
		<description>People with errors, either move the function fibonacci above the main-function, or declare a prototype above and keep the definition below. When the compiler comes to fibonacci(n); it has not yet seen the declaration of that function.

A prototype would be written as
int fibonacci(int n);</description>
		<content:encoded><![CDATA[<p>People with errors, either move the function fibonacci above the main-function, or declare a prototype above and keep the definition below. When the compiler comes to fibonacci(n); it has not yet seen the declaration of that function.</p>
<p>A prototype would be written as<br />
int fibonacci(int n);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Motiur</title>
		<link>http://www.zacharyfox.com/blog/fibonacci-project/fibonacci-in-c/comment-page-1#comment-15114</link>
		<dc:creator>Motiur</dc:creator>
		<pubDate>Sat, 23 Jan 2010 14:51:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.zacharyfox.com/blog/fibonacci-project/fibonacci-in-c#comment-15114</guid>
		<description>Is a recursive implementation of Fibonacci sequence in C possible.</description>
		<content:encoded><![CDATA[<p>Is a recursive implementation of Fibonacci sequence in C possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zachary Fox</title>
		<link>http://www.zacharyfox.com/blog/fibonacci-project/fibonacci-in-c/comment-page-1#comment-11742</link>
		<dc:creator>Zachary Fox</dc:creator>
		<pubDate>Mon, 26 Oct 2009 14:04:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.zacharyfox.com/blog/fibonacci-project/fibonacci-in-c#comment-11742</guid>
		<description>Not really sure why, it works fine for me. There isn&#039;t much that can go wrong. Maybe if you could past the errors, we could figure it out.</description>
		<content:encoded><![CDATA[<p>Not really sure why, it works fine for me. There isn&#8217;t much that can go wrong. Maybe if you could past the errors, we could figure it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MAlevolence_of_C</title>
		<link>http://www.zacharyfox.com/blog/fibonacci-project/fibonacci-in-c/comment-page-1#comment-11082</link>
		<dc:creator>MAlevolence_of_C</dc:creator>
		<pubDate>Mon, 28 Sep 2009 13:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.zacharyfox.com/blog/fibonacci-project/fibonacci-in-c#comment-11082</guid>
		<description>pls re post this cause there are some 8 errors when i tried this sample program...</description>
		<content:encoded><![CDATA[<p>pls re post this cause there are some 8 errors when i tried this sample program&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sandy</title>
		<link>http://www.zacharyfox.com/blog/fibonacci-project/fibonacci-in-c/comment-page-1#comment-10143</link>
		<dc:creator>Sandy</dc:creator>
		<pubDate>Sat, 22 Aug 2009 13:43:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.zacharyfox.com/blog/fibonacci-project/fibonacci-in-c#comment-10143</guid>
		<description>Un-related to above, but wanted to make contact.  I&#039;ve downloaded your add on for FF for NoDoFollow; but I can&#039;t figure out how to use it.  The example shows content is highlighted red.  Somewhere, I believe on a blog or two I read using the toolbar was suppose to make things turn blue or red, one meant do follow, the other no follow.  But, mine does not turn red or blue, it turns purple and I don&#039;t know if purple is good or bad...good being do follow, bad being no follow.

I&#039;ve asked this question of multiple people, but so far haven&#039;t been able to get an answer.  Am hoping you can set me straight, perhaps hop over to my blog and and let me know.

Thanks, looking forward to using the tool.  I removed the no follow from all 3 of my blogspot blogs, I have the badge showing others I am a do follow; but now would like to go to the next step and no when I&#039;m visiting a blog whether they are a do follow or a no follow.

Thanks
Sandy

I should also add, adding to my confusion somewhere I think I read it was suppose to turn purple or white, but those colors weren&#039;t identified as to which one meant what.  Using the tool here now on your blog, your name shows up red and the date of your comment shows up purple.  Adrian&#039;s responses also show up red, while Mike&#039;s remain colorless.</description>
		<content:encoded><![CDATA[<p>Un-related to above, but wanted to make contact.  I&#8217;ve downloaded your add on for FF for NoDoFollow; but I can&#8217;t figure out how to use it.  The example shows content is highlighted red.  Somewhere, I believe on a blog or two I read using the toolbar was suppose to make things turn blue or red, one meant do follow, the other no follow.  But, mine does not turn red or blue, it turns purple and I don&#8217;t know if purple is good or bad&#8230;good being do follow, bad being no follow.</p>
<p>I&#8217;ve asked this question of multiple people, but so far haven&#8217;t been able to get an answer.  Am hoping you can set me straight, perhaps hop over to my blog and and let me know.</p>
<p>Thanks, looking forward to using the tool.  I removed the no follow from all 3 of my blogspot blogs, I have the badge showing others I am a do follow; but now would like to go to the next step and no when I&#8217;m visiting a blog whether they are a do follow or a no follow.</p>
<p>Thanks<br />
Sandy</p>
<p>I should also add, adding to my confusion somewhere I think I read it was suppose to turn purple or white, but those colors weren&#8217;t identified as to which one meant what.  Using the tool here now on your blog, your name shows up red and the date of your comment shows up purple.  Adrian&#8217;s responses also show up red, while Mike&#8217;s remain colorless.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian H</title>
		<link>http://www.zacharyfox.com/blog/fibonacci-project/fibonacci-in-c/comment-page-1#comment-9285</link>
		<dc:creator>Adrian H</dc:creator>
		<pubDate>Thu, 16 Jul 2009 00:42:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.zacharyfox.com/blog/fibonacci-project/fibonacci-in-c#comment-9285</guid>
		<description>How about scheme?? LISP?
Way shorter than any of those:

(define (fib n)
  (if (&lt; n 2)
      n
      (+ (fib (- n 1)) (fib (- n 2)))))</description>
		<content:encoded><![CDATA[<p>How about scheme?? LISP?<br />
Way shorter than any of those:</p>
<p>(define (fib n)<br />
  (if (&lt; n 2)<br />
      n<br />
      (+ (fib (- n 1)) (fib (- n 2)))))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zachary Fox</title>
		<link>http://www.zacharyfox.com/blog/fibonacci-project/fibonacci-in-c/comment-page-1#comment-7408</link>
		<dc:creator>Zachary Fox</dc:creator>
		<pubDate>Wed, 15 Apr 2009 16:08:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.zacharyfox.com/blog/fibonacci-project/fibonacci-in-c#comment-7408</guid>
		<description>@Mike - Sorry I never responded to you. I&#039;m sure there is, just add another prompt to get another variable from stdin, and then modify the fibonacci function to accept n and that. biggest problem is you don&#039;t know what b is, so if you&#039;re using this example, you&#039;ll still have to calculate everything up to that point.</description>
		<content:encoded><![CDATA[<p>@Mike &#8211; Sorry I never responded to you. I&#8217;m sure there is, just add another prompt to get another variable from stdin, and then modify the fibonacci function to accept n and that. biggest problem is you don&#8217;t know what b is, so if you&#8217;re using this example, you&#8217;ll still have to calculate everything up to that point.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zachary Fox</title>
		<link>http://www.zacharyfox.com/blog/fibonacci-project/fibonacci-in-c/comment-page-1#comment-7407</link>
		<dc:creator>Zachary Fox</dc:creator>
		<pubDate>Wed, 15 Apr 2009 16:05:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.zacharyfox.com/blog/fibonacci-project/fibonacci-in-c#comment-7407</guid>
		<description>I can&#039;t seem to duplicate that problem, works fine for me on both linux and OS X with gcc. Did you copy and paste the code or type it all out, or download the file using the link? I&#039;d try downloading the file first.

Also, if you&#039;re using another compiler, there may be something different about it that my code doesn&#039;t take into account.</description>
		<content:encoded><![CDATA[<p>I can&#8217;t seem to duplicate that problem, works fine for me on both linux and OS X with gcc. Did you copy and paste the code or type it all out, or download the file using the link? I&#8217;d try downloading the file first.</p>
<p>Also, if you&#8217;re using another compiler, there may be something different about it that my code doesn&#8217;t take into account.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

