<?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: To reverse the given string using pointer</title>
	<atom:link href="http://electrofriends.com/source-codes/software-programs/c/string-programs/to-reverse-the-given-string-using-pointer/feed/" rel="self" type="application/rss+xml" />
	<link>http://electrofriends.com/source-codes/software-programs/c/string-programs/to-reverse-the-given-string-using-pointer/</link>
	<description>...bringing innovative minds together</description>
	<lastBuildDate>Tue, 22 May 2012 18:24:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: kulbhushan</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/string-programs/to-reverse-the-given-string-using-pointer/comment-page-1/#comment-7203</link>
		<dc:creator>kulbhushan</dc:creator>
		<pubDate>Sat, 31 Mar 2012 02:45:37 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=412#comment-7203</guid>
		<description>and *(str1)= *(str1 + r);</description>
		<content:encoded><![CDATA[<p>and *(str1)= *(str1 + r);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kulbhushan</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/string-programs/to-reverse-the-given-string-using-pointer/comment-page-1/#comment-7202</link>
		<dc:creator>kulbhushan</dc:creator>
		<pubDate>Sat, 31 Mar 2012 02:42:08 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=412#comment-7202</guid>
		<description>IN the above program one thing i think is missing again come back to sting. if &quot; THis is a string&quot;. in the above program it will be only &quot;siht&quot; and the loop will not come back. if we do one more codition like. 
while (*(str1) != NULL)
{
while (*(str1+len) != &#039; &#039;)
len++
for(i=len-1; i&gt;=0; i--)
        {
                *(str2+r) = *(str1+i);
                r++;
        }
        *(str2+r) = &#039;&#039;;
}</description>
		<content:encoded><![CDATA[<p>IN the above program one thing i think is missing again come back to sting. if &#8221; THis is a string&#8221;. in the above program it will be only &#8220;siht&#8221; and the loop will not come back. if we do one more codition like.<br />
while (*(str1) != NULL)<br />
{<br />
while (*(str1+len) != &#8216; &#8216;)<br />
len++<br />
for(i=len-1; i&gt;=0; i&#8211;)<br />
        {<br />
                *(str2+r) = *(str1+i);<br />
                r++;<br />
        }<br />
        *(str2+r) = &#8221;;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sathyaa</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/string-programs/to-reverse-the-given-string-using-pointer/comment-page-1/#comment-6989</link>
		<dc:creator>sathyaa</dc:creator>
		<pubDate>Fri, 24 Feb 2012 10:15:52 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=412#comment-6989</guid>
		<description>#include
#include
#include
void main()
{
   char *str,temp;
   int i,j;
   printf(&quot;\n Enter the string: &quot;);
   scanf(&quot;%s&quot;,str);
   for(i=0,j=strlen(str)-1;i&lt;=j;i++,j--){
      temp=*(str+i);
      *(str+i)=*(str+j);
      *(str+j)=temp;
   }
   printf(&quot;%s&quot;,str);
   getch();
}</description>
		<content:encoded><![CDATA[<p>#include<br />
#include<br />
#include<br />
void main()<br />
{<br />
   char *str,temp;<br />
   int i,j;<br />
   printf(&#8220;\n Enter the string: &#8220;);<br />
   scanf(&#8220;%s&#8221;,str);<br />
   for(i=0,j=strlen(str)-1;i&lt;=j;i++,j&#8211;){<br />
      temp=*(str+i);<br />
      *(str+i)=*(str+j);<br />
      *(str+j)=temp;<br />
   }<br />
   printf(&quot;%s&quot;,str);<br />
   getch();<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gaurav Sharma</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/string-programs/to-reverse-the-given-string-using-pointer/comment-page-1/#comment-5194</link>
		<dc:creator>Gaurav Sharma</dc:creator>
		<pubDate>Mon, 01 Aug 2011 06:30:47 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=412#comment-5194</guid>
		<description>correction in above code is:
while( *(str+len) != &#039;&#039; ) len++;</description>
		<content:encoded><![CDATA[<p>correction in above code is:<br />
while( *(str+len) != &#8221; ) len++;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gaurav Sharma</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/string-programs/to-reverse-the-given-string-using-pointer/comment-page-1/#comment-5193</link>
		<dc:creator>Gaurav Sharma</dc:creator>
		<pubDate>Mon, 01 Aug 2011 06:11:27 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=412#comment-5193</guid>
		<description>void main(void)
{
	uchar *str &quot;ABCDE&quot;;
	uchar len;
	uchar newidex = 0;
	
	len=0;
	while( *str != &#039;&#039; ) len++;
	
	str = revstr(str, len, newidex);
	PRINT(str);
}

uint* revstr(uchar *str, uchar len, uchar &amp;index)
{
	   uchar *b;
	   
	   if(len==0)
	   {
	     return b;
	   }
	   else
	   {
	     b[index++] = str[len];
	     revstr( str, len-1, index );
	   } 
}</description>
		<content:encoded><![CDATA[<p>void main(void)<br />
{<br />
	uchar *str &#8220;ABCDE&#8221;;<br />
	uchar len;<br />
	uchar newidex = 0;</p>
<p>	len=0;<br />
	while( *str != &#8221; ) len++;</p>
<p>	str = revstr(str, len, newidex);<br />
	PRINT(str);<br />
}</p>
<p>uint* revstr(uchar *str, uchar len, uchar &amp;index)<br />
{<br />
	   uchar *b;</p>
<p>	   if(len==0)<br />
	   {<br />
	     return b;<br />
	   }<br />
	   else<br />
	   {<br />
	     b[index++] = str[len];<br />
	     revstr( str, len-1, index );<br />
	   }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: esha</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/string-programs/to-reverse-the-given-string-using-pointer/comment-page-1/#comment-4852</link>
		<dc:creator>esha</dc:creator>
		<pubDate>Mon, 02 May 2011 05:48:30 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=412#comment-4852</guid>
		<description>char *s1;
gets(s1);

this is not correct as s1 is not initialized. its giving segmentation fault.</description>
		<content:encoded><![CDATA[<p>char *s1;<br />
gets(s1);</p>
<p>this is not correct as s1 is not initialized. its giving segmentation fault.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kamal</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/string-programs/to-reverse-the-given-string-using-pointer/comment-page-1/#comment-103</link>
		<dc:creator>kamal</dc:creator>
		<pubDate>Sat, 24 Jan 2009 05:18:26 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=412#comment-103</guid>
		<description>i need codes for yours projects 
so please send me full details
don&#039;t forget me 
thank uuuuuuuuuuuuuuuuuuuuu</description>
		<content:encoded><![CDATA[<p>i need codes for yours projects<br />
so please send me full details<br />
don&#8217;t forget me<br />
thank uuuuuuuuuuuuuuuuuuuuu</p>
]]></content:encoded>
	</item>
</channel>
</rss>

