<?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: How to prints 1 to 100 without using loop and without using recursion!</title>
	<atom:link href="https://www.emblogic.com/blog/06/how-to-prints-1-to-100-without-using-loop-and-without-using-recursion/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog/06/how-to-prints-1-to-100-without-using-loop-and-without-using-recursion/</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Mon, 07 Oct 2013 04:00:03 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>By: Rahul</title>
		<link>https://www.emblogic.com/blog/06/how-to-prints-1-to-100-without-using-loop-and-without-using-recursion/#comment-3987</link>
		<dc:creator><![CDATA[Rahul]]></dc:creator>
		<pubDate>Fri, 28 Jun 2013 22:41:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=6526#comment-3987</guid>
		<description><![CDATA[void printNos(unsigned int n)
{
if(n &gt; 0)
{
printNos(n-1);
printf(“%u “, n);
}
return;
}

int main()
{
printNos(100);
getchar();
return 0;
}

This is the correct code. When using unsigned integer you use the correct specifier. The specifier for unsigned integer is &quot;%u&quot; and for signed integer is &quot;%d&quot;.

This is still not the answer to the question as the OP wants none of the methods. This code is showing recursion. The fuction printNos is calling itself until its stack gets cleared at the last condition failing( 0&gt;0).

Here is the output
http://codepad.org/77JdYHc4]]></description>
		<content:encoded><![CDATA[<p>void printNos(unsigned int n)<br />
{<br />
if(n &gt; 0)<br />
{<br />
printNos(n-1);<br />
printf(“%u “, n);<br />
}<br />
return;<br />
}</p>
<p>int main()<br />
{<br />
printNos(100);<br />
getchar();<br />
return 0;<br />
}</p>
<p>This is the correct code. When using unsigned integer you use the correct specifier. The specifier for unsigned integer is &#8220;%u&#8221; and for signed integer is &#8220;%d&#8221;.</p>
<p>This is still not the answer to the question as the OP wants none of the methods. This code is showing recursion. The fuction printNos is calling itself until its stack gets cleared at the last condition failing( 0&gt;0).</p>
<p>Here is the output<br />
<a href="http://codepad.org/77JdYHc4" rel="nofollow">http://codepad.org/77JdYHc4</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vibhor garg</title>
		<link>https://www.emblogic.com/blog/06/how-to-prints-1-to-100-without-using-loop-and-without-using-recursion/#comment-3980</link>
		<dc:creator><![CDATA[vibhor garg]]></dc:creator>
		<pubDate>Mon, 17 Jun 2013 11:23:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=6526#comment-3980</guid>
		<description><![CDATA[#include 

        void printNos(unsigned int n)
          {
        if(n &gt; 0)
          {
        printNos(n-1);
        printf(&quot;%d &quot;,  n);
          }
        return;
          }


        int main()
          {
        printNos(100);
        getchar();
        return 0;
          }]]></description>
		<content:encoded><![CDATA[<p>#include </p>
<p>        void printNos(unsigned int n)<br />
          {<br />
        if(n &gt; 0)<br />
          {<br />
        printNos(n-1);<br />
        printf(&#8220;%d &#8220;,  n);<br />
          }<br />
        return;<br />
          }</p>
<p>        int main()<br />
          {<br />
        printNos(100);<br />
        getchar();<br />
        return 0;<br />
          }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul</title>
		<link>https://www.emblogic.com/blog/06/how-to-prints-1-to-100-without-using-loop-and-without-using-recursion/#comment-3967</link>
		<dc:creator><![CDATA[Rahul]]></dc:creator>
		<pubDate>Wed, 12 Jun 2013 07:52:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=6526#comment-3967</guid>
		<description><![CDATA[I&#039;m not sure what you&#039;re getting at. But without the loop or recursion its a huge code.

If you simply want to print numbers 1-100 then you can just print them one by one.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure what you&#8217;re getting at. But without the loop or recursion its a huge code.</p>
<p>If you simply want to print numbers 1-100 then you can just print them one by one.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
