<?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"
	>
<channel>
	<title>Comments on: 2.3 &#8212; Variable sizes and the sizeof operator</title>
	<atom:link href="http://www.learncpp.com/cpp-tutorial/23-variable-sizes-and-the-sizeof-operator/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learncpp.com/cpp-tutorial/23-variable-sizes-and-the-sizeof-operator/</link>
	<description></description>
	<pubDate>Thu, 28 Aug 2008 18:38:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Mitul Golakiya</title>
		<link>http://www.learncpp.com/cpp-tutorial/23-variable-sizes-and-the-sizeof-operator/#comment-19189</link>
		<dc:creator>Mitul Golakiya</dc:creator>
		<pubDate>Tue, 17 Jun 2008 10:17:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=43#comment-19189</guid>
		<description>My int takes 2 bytes.
I am working with tourbo C .
My PC is 32-bit.</description>
		<content:encoded><![CDATA[<p>My int takes 2 bytes.<br />
I am working with tourbo C .<br />
My PC is 32-bit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/23-variable-sizes-and-the-sizeof-operator/#comment-17903</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 30 May 2008 23:37:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=43#comment-17903</guid>
		<description>The size of a long double can vary from machine to machine.  On most machines, it is either 8 or 12.  The only way to know for sure is to use sizeof(long double) just as you have.</description>
		<content:encoded><![CDATA[<p>The size of a long double can vary from machine to machine.  On most machines, it is either 8 or 12.  The only way to know for sure is to use sizeof(long double) just as you have.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://www.learncpp.com/cpp-tutorial/23-variable-sizes-and-the-sizeof-operator/#comment-16577</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Fri, 16 May 2008 11:30:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=43#comment-16577</guid>
		<description>Each &lt;pre&gt;\\t&lt;/pre&gt; above should actually be &lt;pre&gt;\t&lt;/pre&gt;, otherwise a literal '\t' will be printed rather than the intended tab character.</description>
		<content:encoded><![CDATA[<p>Each
<pre>\\t</pre>
<p> above should actually be
<pre>\t</pre>
<p>, otherwise a literal &#8216;\t&#8217; will be printed rather than the intended tab character.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Syed</title>
		<link>http://www.learncpp.com/cpp-tutorial/23-variable-sizes-and-the-sizeof-operator/#comment-16380</link>
		<dc:creator>Syed</dc:creator>
		<pubDate>Thu, 15 May 2008 06:38:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=43#comment-16380</guid>
		<description>Hi, I would like to know what is the sizeof(long double); ? In this tutorial it is mentioned 8 bytes. Where as i tried in Dev C++ compiler it is giving 12. 

Thanks,
syed</description>
		<content:encoded><![CDATA[<p>Hi, I would like to know what is the sizeof(long double); ? In this tutorial it is mentioned 8 bytes. Where as i tried in Dev C++ compiler it is giving 12. </p>
<p>Thanks,<br />
syed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: earthHunter</title>
		<link>http://www.learncpp.com/cpp-tutorial/23-variable-sizes-and-the-sizeof-operator/#comment-15124</link>
		<dc:creator>earthHunter</dc:creator>
		<pubDate>Fri, 09 May 2008 00:04:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=43#comment-15124</guid>
		<description>Looks like it's just a mistake. I'd expect anything containing "\\t" or "\\n" to purposely have two backslashes so they don't become actual tabs or newlines, but the apparent "output" is there. I still think it's a mistake.</description>
		<content:encoded><![CDATA[<p>Looks like it&#8217;s just a mistake. I&#8217;d expect anything containing &#8220;\\t&#8221; or &#8220;\\n&#8221; to purposely have two backslashes so they don&#8217;t become actual tabs or newlines, but the apparent &#8220;output&#8221; is there. I still think it&#8217;s a mistake.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.learncpp.com/cpp-tutorial/23-variable-sizes-and-the-sizeof-operator/#comment-14381</link>
		<dc:creator>John</dc:creator>
		<pubDate>Mon, 05 May 2008 01:19:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=43#comment-14381</guid>
		<description>In the code above, all the "\t" characters are showing as "\\t" in my browser. This makes it show up as "\\t\\t" when you run the program instead of tabs. I don't know if this is a browser displaying that code wrong (I'm running Firefox) or if you just typed that in incorrectly. Easily fixed by deleting the extra backslash.</description>
		<content:encoded><![CDATA[<p>In the code above, all the &#8220;\t&#8221; characters are showing as &#8220;\\t&#8221; in my browser. This makes it show up as &#8220;\\t\\t&#8221; when you run the program instead of tabs. I don&#8217;t know if this is a browser displaying that code wrong (I&#8217;m running Firefox) or if you just typed that in incorrectly. Easily fixed by deleting the extra backslash.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn C++ - &#187; 2.2 &#8212; Keywords and naming identifiers</title>
		<link>http://www.learncpp.com/cpp-tutorial/23-variable-sizes-and-the-sizeof-operator/#comment-12629</link>
		<dc:creator>Learn C++ - &#187; 2.2 &#8212; Keywords and naming identifiers</dc:creator>
		<pubDate>Wed, 23 Apr 2008 02:26:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=43#comment-12629</guid>
		<description>[...]  2.3 â€” Variable sizes and the sizeof operator [...]</description>
		<content:encoded><![CDATA[<p>[...]  2.3 â€” Variable sizes and the sizeof operator [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn C++ - &#187; 2.4 &#8212; Integers</title>
		<link>http://www.learncpp.com/cpp-tutorial/23-variable-sizes-and-the-sizeof-operator/#comment-12597</link>
		<dc:creator>Learn C++ - &#187; 2.4 &#8212; Integers</dc:creator>
		<pubDate>Wed, 23 Apr 2008 01:44:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=43#comment-12597</guid>
		<description>[...]  2.3 â€” Variable sizes and the sizeof operator [...]</description>
		<content:encoded><![CDATA[<p>[...]  2.3 â€” Variable sizes and the sizeof operator [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vader347</title>
		<link>http://www.learncpp.com/cpp-tutorial/23-variable-sizes-and-the-sizeof-operator/#comment-8714</link>
		<dc:creator>vader347</dc:creator>
		<pubDate>Sat, 01 Mar 2008 02:47:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=43#comment-8714</guid>
		<description>my long double takes 12 bytes</description>
		<content:encoded><![CDATA[<p>my long double takes 12 bytes</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/23-variable-sizes-and-the-sizeof-operator/#comment-6561</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 25 Jan 2008 00:04:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=43#comment-6561</guid>
		<description>Computers work by moving binary digits (bits) around.  However, most computers do not work with individual bits -- rather, they move data around in chunks.  This chunk size is called a "word".  Typically, when we speak of the bit-ness of a machine, we speak of the size of a word.  Thus, a 32-bit machine has a 32-bit word size, which means it moves information around 32-bits at a time.

Typically, modern computers use one word to address memory.  With a 32-bit word, this means there are about 2^32 (4 billion) unique memory addresses that can be addressed.  This is why 32-bit machines can only address 4GB of memory.</description>
		<content:encoded><![CDATA[<p>Computers work by moving binary digits (bits) around.  However, most computers do not work with individual bits &#8212; rather, they move data around in chunks.  This chunk size is called a &#8220;word&#8221;.  Typically, when we speak of the bit-ness of a machine, we speak of the size of a word.  Thus, a 32-bit machine has a 32-bit word size, which means it moves information around 32-bits at a time.</p>
<p>Typically, modern computers use one word to address memory.  With a 32-bit word, this means there are about 2^32 (4 billion) unique memory addresses that can be addressed.  This is why 32-bit machines can only address 4GB of memory.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
