<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: values code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Thu, 21 Aug 2008 06:04:26 GMT</pubDate>
    <description>DZone Snippets: values code</description>
    <item>
      <title>swap values without temporary variable</title>
      <link>http://snippets.dzone.com/posts/show/2676</link>
      <description>The XOR swap algorithm is an inefficient method of swapping two variables. http://en.wikipedia.org/wiki/Xor_swap_algorithm&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;void XORSwap(void *x, void *y)&lt;br /&gt;{&lt;br /&gt;   *x ^= *y;&lt;br /&gt;   *y ^= *x;&lt;br /&gt;   *x ^= *y;&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Sat, 23 Sep 2006 17:40:36 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/2676</guid>
      <author>nevadalife (nevada)</author>
    </item>
  </channel>
</rss>
