<?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: Swap two variables using XOR</title>
	<atom:link href="http://betterexplained.com/articles/swap-two-variables-using-xor/feed/" rel="self" type="application/rss+xml" />
	<link>http://betterexplained.com/articles/swap-two-variables-using-xor/</link>
	<description>Learning shouldn&#039;t hurt. Let&#039;s share the insights that made difficult ideas click.</description>
	<lastBuildDate>Fri, 10 Sep 2010 15:29:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: algebra solutions</title>
		<link>http://betterexplained.com/articles/swap-two-variables-using-xor/#comment-310581</link>
		<dc:creator>algebra solutions</dc:creator>
		<pubDate>Thu, 02 Sep 2010 23:22:09 +0000</pubDate>
		<guid isPermaLink="false">http://betterexplained.com/articles/swap-two-variables-using-xor/#comment-310581</guid>
		<description>&lt;strong&gt;algebra solutions...&lt;/strong&gt;

Wasn&#039;t this topic explained (but in a completely different opinion)?...</description>
		<content:encoded><![CDATA[<p><strong>algebra solutions&#8230;</strong></p>
<p>Wasn&#8217;t this topic explained (but in a completely different opinion)?&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://betterexplained.com/articles/swap-two-variables-using-xor/#comment-274254</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sat, 27 Feb 2010 06:52:05 +0000</pubDate>
		<guid isPermaLink="false">http://betterexplained.com/articles/swap-two-variables-using-xor/#comment-274254</guid>
		<description>void main()
{
int a=25,b=15;
a=a+b;
b=a-b;
a=a-b;
b=a+b;
printf(&quot;%d%d&quot;,a,b);
}</description>
		<content:encoded><![CDATA[<p>void main()<br />
{<br />
int a=25,b=15;<br />
a=a+b;<br />
b=a-b;<br />
a=a-b;<br />
b=a+b;<br />
printf(&#8221;%d%d&#8221;,a,b);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sriram</title>
		<link>http://betterexplained.com/articles/swap-two-variables-using-xor/#comment-262478</link>
		<dc:creator>Sriram</dc:creator>
		<pubDate>Sun, 15 Nov 2009 04:30:17 +0000</pubDate>
		<guid isPermaLink="false">http://betterexplained.com/articles/swap-two-variables-using-xor/#comment-262478</guid>
		<description>Hey guys, what about swaping variables contains string values? All of your solutions will suck... Try this and swap integer or string without third variable... Happy Sensible Coding..

$v = &#039;sriram&#039;;
$u = &#039;lakshmi&#039;;

$v .= $u;
$u = substr($v,0,(strlen($v) - strlen($u)));
$v = substr($v,(strlen($v) - strlen($u)-1), strlen($v));

echo &#039;u = &#039; . $u .&#039;&#039;;
echo &#039;v = &#039; . $v;</description>
		<content:encoded><![CDATA[<p>Hey guys, what about swaping variables contains string values? All of your solutions will suck&#8230; Try this and swap integer or string without third variable&#8230; Happy Sensible Coding..</p>
<p>$v = &#8217;sriram&#8217;;<br />
$u = &#8216;lakshmi&#8217;;</p>
<p>$v .= $u;<br />
$u = substr($v,0,(strlen($v) &#8211; strlen($u)));<br />
$v = substr($v,(strlen($v) &#8211; strlen($u)-1), strlen($v));</p>
<p>echo &#8216;u = &#8216; . $u .&#8221;;<br />
echo &#8216;v = &#8216; . $v;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 7/12 queries in 0.009 seconds using disk

Served from: betterexplained.com @ 2010-09-10 19:10:42 -->