<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for What I learned today ?</title>
	<atom:link href="http://whatilearned2day.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://whatilearned2day.wordpress.com</link>
	<description>Ramblings of a programming aficianado</description>
	<lastBuildDate>Thu, 12 Jun 2008 02:30:56 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on return and exit from main: difference by innqubus</title>
		<link>http://whatilearned2day.wordpress.com/2007/02/14/return-and-exit-from-main-difference/#comment-498</link>
		<dc:creator>innqubus</dc:creator>
		<pubDate>Thu, 12 Jun 2008 02:30:56 +0000</pubDate>
		<guid isPermaLink="false">http://whatilearned2day.wordpress.com/2007/02/14/return-and-exit-from-main-difference/#comment-498</guid>
		<description>U have taken main() as an example for differentiating betn return and exit... 
in any other functions apart from main.. dont have have any difference?</description>
		<content:encoded><![CDATA[<p>U have taken main() as an example for differentiating betn return and exit&#8230;<br />
in any other functions apart from main.. dont have have any difference?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on to switch-case or not to ! by atmcgui</title>
		<link>http://whatilearned2day.wordpress.com/2007/09/13/to-switch-case-or-not-to/#comment-497</link>
		<dc:creator>atmcgui</dc:creator>
		<pubDate>Wed, 11 Jun 2008 15:58:57 +0000</pubDate>
		<guid isPermaLink="false">http://whatilearned2day.wordpress.com/2007/09/13/to-switch-case-or-not-to/#comment-497</guid>
		<description>I have coded some jump tables in assembly before.  I would say they are more efficient than if-else cascades.  If switch structures are implemented with strings (as in Java) my guess is they would be about the same speed as if-else cascades ( maybe faster still depending on how they do the strcmp ).

As it turns out, I am using switch structures to speed up a program I am writing right now.  ( I had just googled my way here looking for if the compiler implements them as jump tables or not ).</description>
		<content:encoded><![CDATA[<p>I have coded some jump tables in assembly before.  I would say they are more efficient than if-else cascades.  If switch structures are implemented with strings (as in Java) my guess is they would be about the same speed as if-else cascades ( maybe faster still depending on how they do the strcmp ).</p>
<p>As it turns out, I am using switch structures to speed up a program I am writing right now.  ( I had just googled my way here looking for if the compiler implements them as jump tables or not ).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A generic binary search implementation in C &#8211; thoughts by awmanoj</title>
		<link>http://whatilearned2day.wordpress.com/2008/01/06/a-generic-binary-search-implementation-in-c-thoughts/#comment-496</link>
		<dc:creator>awmanoj</dc:creator>
		<pubDate>Sun, 30 Mar 2008 12:22:29 +0000</pubDate>
		<guid isPermaLink="false">http://whatilearned2day.wordpress.com/2008/01/06/a-generic-binary-search-implementation-in-c-thoughts/#comment-496</guid>
		<description>you&#039;re welcome shailendra.. !</description>
		<content:encoded><![CDATA[<p>you&#8217;re welcome shailendra.. !</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A generic binary search implementation in C &#8211; thoughts by sbaghelin</title>
		<link>http://whatilearned2day.wordpress.com/2008/01/06/a-generic-binary-search-implementation-in-c-thoughts/#comment-495</link>
		<dc:creator>sbaghelin</dc:creator>
		<pubDate>Sun, 30 Mar 2008 11:34:16 +0000</pubDate>
		<guid isPermaLink="false">http://whatilearned2day.wordpress.com/2008/01/06/a-generic-binary-search-implementation-in-c-thoughts/#comment-495</guid>
		<description>Ok. Thanks for the fast response. This solves the puzzle.</description>
		<content:encoded><![CDATA[<p>Ok. Thanks for the fast response. This solves the puzzle.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A generic binary search implementation in C &#8211; thoughts by awmanoj</title>
		<link>http://whatilearned2day.wordpress.com/2008/01/06/a-generic-binary-search-implementation-in-c-thoughts/#comment-494</link>
		<dc:creator>awmanoj</dc:creator>
		<pubDate>Sun, 30 Mar 2008 11:32:22 +0000</pubDate>
		<guid isPermaLink="false">http://whatilearned2day.wordpress.com/2008/01/06/a-generic-binary-search-implementation-in-c-thoughts/#comment-494</guid>
		<description>compare function will be implemented by the person who is using the binsearch function. It will be something like this - 

// suppose my array is of a int 
int mycompare4int (void *a, void *b) 
{ 
   int *ma = (int *) a; 
   int *mb = (int *) b; 
   if(*ma &gt; *mb) 
       return 1; 
   if(*ma &lt; *mb) 
       return -1; 
   return 0; 
}

similarly for float and other data structures.</description>
		<content:encoded><![CDATA[<p>compare function will be implemented by the person who is using the binsearch function. It will be something like this &#8211; </p>
<p>// suppose my array is of a int<br />
int mycompare4int (void *a, void *b)<br />
{<br />
   int *ma = (int *) a;<br />
   int *mb = (int *) b;<br />
   if(*ma &gt; *mb)<br />
       return 1;<br />
   if(*ma &lt; *mb)<br />
       return -1;<br />
   return 0;<br />
}</p>
<p>similarly for float and other data structures.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A generic binary search implementation in C &#8211; thoughts by sbaghelin</title>
		<link>http://whatilearned2day.wordpress.com/2008/01/06/a-generic-binary-search-implementation-in-c-thoughts/#comment-493</link>
		<dc:creator>sbaghelin</dc:creator>
		<pubDate>Sun, 30 Mar 2008 11:14:38 +0000</pubDate>
		<guid isPermaLink="false">http://whatilearned2day.wordpress.com/2008/01/06/a-generic-binary-search-implementation-in-c-thoughts/#comment-493</guid>
		<description>Can you provide some psuedo-code for compare() as that is the crux of solving the puzzle?</description>
		<content:encoded><![CDATA[<p>Can you provide some psuedo-code for compare() as that is the crux of solving the puzzle?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on failed to retrieve keys &#8211; Automatix ! by awmanoj</title>
		<link>http://whatilearned2day.wordpress.com/2007/03/06/failed-to-retrieve-keys-automatix/#comment-492</link>
		<dc:creator>awmanoj</dc:creator>
		<pubDate>Fri, 04 Jan 2008 08:04:52 +0000</pubDate>
		<guid isPermaLink="false">http://whatilearned2day.wordpress.com/2007/03/06/failed-to-retrieve-keys-automatix/#comment-492</guid>
		<description>hey.. nice to see that people get their problem solved.. !</description>
		<content:encoded><![CDATA[<p>hey.. nice to see that people get their problem solved.. !</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on failed to retrieve keys &#8211; Automatix ! by nishanth2</title>
		<link>http://whatilearned2day.wordpress.com/2007/03/06/failed-to-retrieve-keys-automatix/#comment-491</link>
		<dc:creator>nishanth2</dc:creator>
		<pubDate>Fri, 04 Jan 2008 01:26:58 +0000</pubDate>
		<guid isPermaLink="false">http://whatilearned2day.wordpress.com/2007/03/06/failed-to-retrieve-keys-automatix/#comment-491</guid>
		<description>Thank you so much Manoj ... i&#039;ve been struggling with the sam eand finally got through with your suggestions :)</description>
		<content:encoded><![CDATA[<p>Thank you so much Manoj &#8230; i&#8217;ve been struggling with the sam eand finally got through with your suggestions <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on to switch-case or not to ! by awmanoj</title>
		<link>http://whatilearned2day.wordpress.com/2007/09/13/to-switch-case-or-not-to/#comment-489</link>
		<dc:creator>awmanoj</dc:creator>
		<pubDate>Sat, 15 Sep 2007 03:58:30 +0000</pubDate>
		<guid isPermaLink="false">http://whatilearned2day.wordpress.com/2007/09/13/to-switch-case-or-not-to/#comment-489</guid>
		<description>Thanks for the information. My comment was (very much) limited to C/C++ (as my exposure is). But had I mentioned that, enlightenment with this revelation would not have happened. 

Read your blog, Nice posts. 

-Manoj</description>
		<content:encoded><![CDATA[<p>Thanks for the information. My comment was (very much) limited to C/C++ (as my exposure is). But had I mentioned that, enlightenment with this revelation would not have happened. </p>
<p>Read your blog, Nice posts. </p>
<p>-Manoj</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on to switch-case or not to ! by drj11</title>
		<link>http://whatilearned2day.wordpress.com/2007/09/13/to-switch-case-or-not-to/#comment-488</link>
		<dc:creator>drj11</dc:creator>
		<pubDate>Fri, 14 Sep 2007 17:23:38 +0000</pubDate>
		<guid isPermaLink="false">http://whatilearned2day.wordpress.com/2007/09/13/to-switch-case-or-not-to/#comment-488</guid>
		<description>switch in C, as you say, can only take constant expressions for the case labels.  &lt;a href=&quot;http://drj11.wordpress.com/2007/09/03/javascript-switch/&quot; rel=&quot;nofollow&quot;&gt;switch in JavaScript&lt;/a&gt; can take arbitrary expressions (for example, strings &quot;foo&quot;, conditionals x &gt; y, computed expressions x*x).</description>
		<content:encoded><![CDATA[<p>switch in C, as you say, can only take constant expressions for the case labels.  <a href="http://drj11.wordpress.com/2007/09/03/javascript-switch/" rel="nofollow">switch in JavaScript</a> can take arbitrary expressions (for example, strings &#8220;foo&#8221;, conditionals x &gt; y, computed expressions x*x).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
