<?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: 2.4 &#8212; Integers</title>
	<atom:link href="http://www.learncpp.com/cpp-tutorial/24-integers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learncpp.com/cpp-tutorial/24-integers/</link>
	<description></description>
	<lastBuildDate>Thu, 09 Sep 2010 12:59:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Kevin</title>
		<link>http://www.learncpp.com/cpp-tutorial/24-integers/comment-page-1/#comment-90822</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Tue, 24 Aug 2010 21:56:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=44#comment-90822</guid>
		<description>Hi Alex

Did you realise you were missing the number 12 and 14 from your binary example?

You have: 
 0, 1, 10, 11, 100, 101, 110, 111, 1000, 1001, 1010, 1011, 1101, 1111
Should be:
 0, 1, 10, 11, 100, 101, 110, 111, 1000, 1001, 1010, 1011, 1100, 1101, 1110, 1111

Don&#039;t know if that was intentional but it certainly hurt by brain (binary newbie) figuring it out!

Cheers for the awesome tutorial, I&#039;m so grateful for your time :)

Kevin</description>
		<content:encoded><![CDATA[<p>Hi Alex</p>
<p>Did you realise you were missing the number 12 and 14 from your binary example?</p>
<p>You have:<br />
 0, 1, 10, 11, 100, 101, 110, 111, 1000, 1001, 1010, 1011, 1101, 1111<br />
Should be:<br />
 0, 1, 10, 11, 100, 101, 110, 111, 1000, 1001, 1010, 1011, 1100, 1101, 1110, 1111</p>
<p>Don&#8217;t know if that was intentional but it certainly hurt by brain (binary newbie) figuring it out!</p>
<p>Cheers for the awesome tutorial, I&#8217;m so grateful for your time :)</p>
<p>Kevin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aditya Dhara</title>
		<link>http://www.learncpp.com/cpp-tutorial/24-integers/comment-page-1/#comment-89207</link>
		<dc:creator>Aditya Dhara</dc:creator>
		<pubDate>Wed, 28 Jul 2010 09:09:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=44#comment-89207</guid>
		<description>when you say, an int variable has a size of 2 bytes or 4 bytes, what do u mean? does it dynamically change size from 2 to 4 bytes as the number get larger?</description>
		<content:encoded><![CDATA[<p>when you say, an int variable has a size of 2 bytes or 4 bytes, what do u mean? does it dynamically change size from 2 to 4 bytes as the number get larger?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zsb</title>
		<link>http://www.learncpp.com/cpp-tutorial/24-integers/comment-page-1/#comment-87043</link>
		<dc:creator>zsb</dc:creator>
		<pubDate>Wed, 23 Jun 2010 16:44:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=44#comment-87043</guid>
		<description>&lt;pre&gt;i have a calculator for this it is 
0-1-10-11-100-101-110-111-1000-1001-1010-1011-1100-1101-1110-1111
0-15&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<pre>i have a calculator for this it is
0-1-10-11-100-101-110-111-1000-1001-1010-1011-1100-1101-1110-1111
0-15</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: joe</title>
		<link>http://www.learncpp.com/cpp-tutorial/24-integers/comment-page-1/#comment-87011</link>
		<dc:creator>joe</dc:creator>
		<pubDate>Wed, 23 Jun 2010 04:36:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=44#comment-87011</guid>
		<description>What is the difference between the &quot;long&quot; and &quot;int&quot; variable types? (They both have the same size).</description>
		<content:encoded><![CDATA[<p>What is the difference between the &#8220;long&#8221; and &#8220;int&#8221; variable types? (They both have the same size).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joha</title>
		<link>http://www.learncpp.com/cpp-tutorial/24-integers/comment-page-1/#comment-86989</link>
		<dc:creator>joha</dc:creator>
		<pubDate>Tue, 22 Jun 2010 18:36:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=44#comment-86989</guid>
		<description>I thing it is 0-1-10-11-100-101-110-111-1000-1001-1010-1011-1100-1101-1110 to make a 15 and to make a 16, just add a 1111......

Let me know if I am mistaken.....great tutorials...</description>
		<content:encoded><![CDATA[<p>I thing it is 0-1-10-11-100-101-110-111-1000-1001-1010-1011-1100-1101-1110 to make a 15 and to make a 16, just add a 1111&#8230;&#8230;</p>
<p>Let me know if I am mistaken&#8230;..great tutorials&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mfz</title>
		<link>http://www.learncpp.com/cpp-tutorial/24-integers/comment-page-1/#comment-84914</link>
		<dc:creator>mfz</dc:creator>
		<pubDate>Tue, 18 May 2010 21:00:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=44#comment-84914</guid>
		<description>For &quot;1 byte signed&quot; the range is -128 to 127, how is -128 represented in 1 byte, does&#039;nt it cause an overflow?
127  =&gt; 01111111 
-128 =&gt; 111111111 (the right most 1 represents - negative)

Also why cant we represent 128 in 1 byte (why is the range only till 127?)
128 =&gt; 10000000

Thx</description>
		<content:encoded><![CDATA[<p>For &#8220;1 byte signed&#8221; the range is -128 to 127, how is -128 represented in 1 byte, does&#8217;nt it cause an overflow?<br />
127  =&gt; 01111111<br />
-128 =&gt; 111111111 (the right most 1 represents &#8211; negative)</p>
<p>Also why cant we represent 128 in 1 byte (why is the range only till 127?)<br />
128 =&gt; 10000000</p>
<p>Thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Subhasis Rout</title>
		<link>http://www.learncpp.com/cpp-tutorial/24-integers/comment-page-1/#comment-82256</link>
		<dc:creator>Subhasis Rout</dc:creator>
		<pubDate>Sat, 03 Apr 2010 19:22:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=44#comment-82256</guid>
		<description>Can someone tell me why this does not work.

&lt;pre&gt;
unsigned char ch1=5;
cout&lt;&lt;&quot;The value of ch1 is : &quot;&lt;&lt;ch1&lt;&lt;endl;
&lt;/pre&gt;

As per the above lesson char is type of INT. so this should work.</description>
		<content:encoded><![CDATA[<p>Can someone tell me why this does not work.</p>
<pre>
unsigned char ch1=5;
cout&lt;&lt;&quot;The value of ch1 is : &quot;&lt;&lt;ch1&lt;&lt;endl;
</pre>
<p>As per the above lesson char is type of INT. so this should work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yzak</title>
		<link>http://www.learncpp.com/cpp-tutorial/24-integers/comment-page-1/#comment-75642</link>
		<dc:creator>Yzak</dc:creator>
		<pubDate>Mon, 04 Jan 2010 03:50:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=44#comment-75642</guid>
		<description>oops...
12 - 1100
13 - 1101
14 - 1110
15 - 1111</description>
		<content:encoded><![CDATA[<p>oops&#8230;<br />
12 &#8211; 1100<br />
13 &#8211; 1101<br />
14 &#8211; 1110<br />
15 &#8211; 1111</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yzak</title>
		<link>http://www.learncpp.com/cpp-tutorial/24-integers/comment-page-1/#comment-75452</link>
		<dc:creator>Yzak</dc:creator>
		<pubDate>Sun, 03 Jan 2010 23:33:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=44#comment-75452</guid>
		<description>Adam,
In the overflow section, I noticed you only have 14 numbers. Shouldn&#039;t there be 16 since you are starting from 0. Wouldn&#039;t it be:
0, 1, 10, 11, 100, 101, 110, 111, 1000, 1001, 1010, 1011, 1101, 1111
0 -   0
1 -   1
2 -  10
3 -  11
4 - 100
5 - 101
6 - 110
7 - 111
8 -1000
9 -1001
10-1010
11-1011
12-1101
13-1110
14-1111
15-10000
?</description>
		<content:encoded><![CDATA[<p>Adam,<br />
In the overflow section, I noticed you only have 14 numbers. Shouldn&#8217;t there be 16 since you are starting from 0. Wouldn&#8217;t it be:<br />
0, 1, 10, 11, 100, 101, 110, 111, 1000, 1001, 1010, 1011, 1101, 1111<br />
0 &#8211;   0<br />
1 &#8211;   1<br />
2 &#8211;  10<br />
3 &#8211;  11<br />
4 &#8211; 100<br />
5 &#8211; 101<br />
6 &#8211; 110<br />
7 &#8211; 111<br />
8 -1000<br />
9 -1001<br />
10-1010<br />
11-1011<br />
12-1101<br />
13-1110<br />
14-1111<br />
15-10000<br />
?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lampamp</title>
		<link>http://www.learncpp.com/cpp-tutorial/24-integers/comment-page-1/#comment-74854</link>
		<dc:creator>lampamp</dc:creator>
		<pubDate>Fri, 25 Dec 2009 17:49:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=44#comment-74854</guid>
		<description>65535 is 0011011000110101001101010011001100110101
65536 is 0011011000110101001101010011001100110110

how is short able to maintain the first but not the second?
can u please explain?</description>
		<content:encoded><![CDATA[<p>65535 is 0011011000110101001101010011001100110101<br />
65536 is 0011011000110101001101010011001100110110</p>
<p>how is short able to maintain the first but not the second?<br />
can u please explain?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
