<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" 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/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>Adam Monsen &#187; c</title> <atom:link href="http://adammonsen.com/post/tag/c/feed" rel="self" type="application/rss+xml" /><link>http://adammonsen.com</link> <description></description> <lastBuildDate>Thu, 03 May 2012 18:11:34 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>Mayday Programming Brain Teaser</title><link>http://adammonsen.com/post/337?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tiny-brain-teaser</link> <comments>http://adammonsen.com/post/337#comments</comments> <pubDate>Thu, 01 May 2008 14:18:56 +0000</pubDate> <dc:creator>adam</dc:creator> <category><![CDATA[Default]]></category> <category><![CDATA[c]]></category> <category><![CDATA[java]]></category> <category><![CDATA[programming]]></category><guid isPermaLink="false">http://adammonsen.com/post/337</guid> <description><![CDATA[Thanks to Sam for the idea. int k = 0; k = k++; After both lines execute, what is k equal to? Apparently, the answer depends on a number of things. In Java, k is 0. In C, it may be 0 or 1 depending on your compiler! Bonus points if you can explain why.]]></description> <content:encoded><![CDATA[<p>Thanks to Sam for the idea.</p><blockquote><pre>int k = 0;
k = k++;</pre></blockquote><p>After both lines execute, what is <code>k</code> equal to?</p><p><span id="more-337"></span></p><p>Apparently, the answer depends on a number of things. In Java, <code>k</code> is 0. In C, it may be 0 or 1 depending on your compiler!</p><p>Bonus points if you can explain why.</p> ]]></content:encoded> <wfw:commentRss>http://adammonsen.com/post/337/feed</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Multitaskcraptastic</title><link>http://adammonsen.com/post/327?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=dang-distractions</link> <comments>http://adammonsen.com/post/327#comments</comments> <pubDate>Thu, 31 Jan 2008 12:44:20 +0000</pubDate> <dc:creator>adam</dc:creator> <category><![CDATA[Default]]></category> <category><![CDATA[c]]></category> <category><![CDATA[Odd]]></category> <category><![CDATA[programming]]></category><guid isPermaLink="false">http://adammonsen.com/post/327</guid> <description><![CDATA[There are just too many shiny objects out there. Here&#8217;s how I ended up looking at some of the strangest C code I&#8217;ve ever seen. Started on the gslug mailing list, reading about a new keyboard layout. I continue to be drawn in to rumors that the QWERTY layout is a conspiracy to slow down [...]]]></description> <content:encoded><![CDATA[<p>There are just too many shiny objects out there. Here&#8217;s how I ended up looking at some of the strangest C code I&#8217;ve ever seen.</p><ol><li>Started <a href="http://lists.ifokr.org/pipermail/gslug-general/2008-January/000382.html">on the gslug mailing list</a>, reading about a new keyboard layout. I continue to be drawn in to rumors that the QWERTY layout is a conspiracy to slow down typers, so hearing about a new keyboard layout called Colemak piqued my curiosity.</li><li>Progressed quickly from <a href="http://colemak.com/">colemak.com</a> to the <a href="http://en.wikipedia.org/wiki/Colemak">Wikipedia entry on Colemak</a>. Cool, Colemak is supposed to be easier to switch to than Dvorak.</li><li>The Colemak entry on Wikipedia mentions <a href="http://en.wikipedia.org/wiki/Digraph_%28computing%29">digraphs</a>. I&#8217;ve heard of digraphs because I use them in Vim, but <a href="http://david.tribble.com/text/cdiffs.htm#C90-digraph">you can use them in C</a>, too? Strange.</li><li>The digraph entry on Wikipedia also mentions <a href="http://en.wikipedia.org/wiki/C_trigraph">trigraphs</a>. Trigraphs!</li></ol><p>Sheesh. Interesting, but talk about distracting. I sure hope it isn&#8217;t true that <a href="http://science.slashdot.org/article.pl?sid=08/01/27/2221228">multitasking kills your brain</a>.</p> ]]></content:encoded> <wfw:commentRss>http://adammonsen.com/post/327/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: adammonsen.com @ 2012-05-21 18:02:22 -->
