<?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 numbers without a &#8216;=&#8217; operator</title>
	<atom:link href="http://www.twistedgenes.com/2008/06/swap-two-numbers-without-a-operator/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.twistedgenes.com/2008/06/swap-two-numbers-without-a-operator/</link>
	<description>Blogs on truth, technology, food, linux, leisure, experiences, adventure, romance, friends etc !</description>
	<lastBuildDate>Thu, 22 Jul 2010 10:16:36 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: rakesh</title>
		<link>http://www.twistedgenes.com/2008/06/swap-two-numbers-without-a-operator/comment-page-1/#comment-83</link>
		<dc:creator>rakesh</dc:creator>
		<pubDate>Sat, 21 Jun 2008 19:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://rak19.wordpress.com/2008/06/11/swap-two-numbers-without-a-operator/#comment-83</guid>
		<description>Yup dude. There are many other ways</description>
		<content:encoded><![CDATA[<p>Yup dude. There are many other ways</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manish</title>
		<link>http://www.twistedgenes.com/2008/06/swap-two-numbers-without-a-operator/comment-page-1/#comment-82</link>
		<dc:creator>Manish</dc:creator>
		<pubDate>Fri, 20 Jun 2008 12:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://rak19.wordpress.com/2008/06/11/swap-two-numbers-without-a-operator/#comment-82</guid>
		<description>We have other options instead of using =.Similar semantics are observed by function calls while passing params.Also We can use a notion of copy consrtuctor which is present by default in C++.To use that just write a wrapper around Int..&lt;br/&gt;&lt;br/&gt;class Int{&lt;br/&gt;&lt;br/&gt;int num;&lt;br/&gt;public:&lt;br/&gt;Int(){memcpy(&amp;num,0);};&lt;br/&gt;Int(int a){memcpy(&amp;num,&amp;a);};&lt;br/&gt;&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;main()&lt;br/&gt;{&lt;br/&gt;&lt;br/&gt;Int a,b;&lt;br/&gt;Int c(a);&lt;br/&gt;Int a(b);&lt;br/&gt;Int b(a);&lt;br/&gt;&lt;br/&gt;}&lt;br/&gt;class Int{&lt;br/&gt;&lt;br/&gt;int num;&lt;br/&gt;public:&lt;br/&gt;Int(){memcpy(&amp;num,0);};&lt;br/&gt;Int(int a){memcpy(&amp;num,&amp;a);};&lt;br/&gt;&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;main()&lt;br/&gt;{&lt;br/&gt;&lt;br/&gt;Int a(4),b(5);&lt;br/&gt;Int c(a);&lt;br/&gt;Int a(b);&lt;br/&gt;Int b(a);&lt;br/&gt;&lt;br/&gt;}</description>
		<content:encoded><![CDATA[<p>We have other options instead of using =.Similar semantics are observed by function calls while passing params.Also We can use a notion of copy consrtuctor which is present by default in C++.To use that just write a wrapper around Int..</p>
<p>class Int{</p>
<p>int num;<br />public:<br />Int(){memcpy(&#038;num,0);};<br />Int(int a){memcpy(&#038;num,&#038;a);};</p>
<p>}</p>
<p>main()<br />{</p>
<p>Int a,b;<br />Int c(a);<br />Int a(b);<br />Int b(a);</p>
<p>}<br />class Int{</p>
<p>int num;<br />public:<br />Int(){memcpy(&#038;num,0);};<br />Int(int a){memcpy(&#038;num,&#038;a);};</p>
<p>}</p>
<p>main()<br />{</p>
<p>Int a(4),b(5);<br />Int c(a);<br />Int a(b);<br />Int b(a);</p>
<p>}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-4811008-2");
pageTracker._setDomainName(".twistedgenes.com");
pageTracker._trackPageview();
} catch(err) {}</script>