<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Größe Datentypen]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe mal folgendes geschrieben:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;

int main()
{
	unsigned a=-1;
	unsigned long b=-1;

	std::cout &lt;&lt;a &lt;&lt;std::endl &lt;&lt;b;
}
</code></pre>
<p>Die Ausgabe:</p>
<pre><code>4294967295
4294967295
</code></pre>
<p>Das zeigt ja den höchsten Wert von unsigned (int) und unsigned long an, aber ist long nicht größer als int?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/272821/größe-datentypen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 28 Aug 2026 16:27:08 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/272821.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 25 Aug 2010 18:27:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Größe Datentypen on Wed, 25 Aug 2010 18:27:26 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe mal folgendes geschrieben:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;

int main()
{
	unsigned a=-1;
	unsigned long b=-1;

	std::cout &lt;&lt;a &lt;&lt;std::endl &lt;&lt;b;
}
</code></pre>
<p>Die Ausgabe:</p>
<pre><code>4294967295
4294967295
</code></pre>
<p>Das zeigt ja den höchsten Wert von unsigned (int) und unsigned long an, aber ist long nicht größer als int?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1944353</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1944353</guid><dc:creator><![CDATA[C++H]]></dc:creator><pubDate>Wed, 25 Aug 2010 18:27:26 GMT</pubDate></item><item><title><![CDATA[Reply to Größe Datentypen on Wed, 25 Aug 2010 18:34:17 GMT]]></title><description><![CDATA[<p>Nicht zwangsläufig.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1944355</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1944355</guid><dc:creator><![CDATA[hupfdohle]]></dc:creator><pubDate>Wed, 25 Aug 2010 18:34:17 GMT</pubDate></item><item><title><![CDATA[Reply to Größe Datentypen on Wed, 25 Aug 2010 18:51:23 GMT]]></title><description><![CDATA[<p>Ubuntu</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;

int main()
{
    unsigned a=-1;
    unsigned long b=-1;
    unsigned long long c=-1;

    std::cout &lt;&lt; a &lt;&lt; std::endl &lt;&lt; 
                 b &lt;&lt; std::endl &lt;&lt;
                 c;
}
</code></pre>
<pre><code>4294967295 
18446744073709551615 
18446744073709551615
</code></pre>
<p>Nimm mal <code>sizeof(long)</code> usw, dann siehst du deren (byte) Länge</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1944361</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1944361</guid><dc:creator><![CDATA[padreigh]]></dc:creator><pubDate>Wed, 25 Aug 2010 18:51:23 GMT</pubDate></item><item><title><![CDATA[Reply to Größe Datentypen on Wed, 25 Aug 2010 19:10:52 GMT]]></title><description><![CDATA[<p>Hängt vom System ab, ist also nicht überall gleich.</p>
<p>Früher bei 16Bit ware zum Beispiel int 16 Bit und long 32 Bit.<br />
Bei mir ist int und long beides 32 Bit.</p>
<p><a href="http://www.datasource.de/programmierung/tab33_cppdatentypen.html" rel="nofollow">http://www.datasource.de/programmierung/tab33_cppdatentypen.html</a></p>
<p>Aber wie mein Vorredner schon sagte, schau am besten mit sizeof( datentyp ) nach dann weißt du wie es auf deinem System ist;-)</p>
<p>Lg freeG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1944366</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1944366</guid><dc:creator><![CDATA[fr33g]]></dc:creator><pubDate>Wed, 25 Aug 2010 19:10:52 GMT</pubDate></item><item><title><![CDATA[Reply to Größe Datentypen on Wed, 25 Aug 2010 19:21:11 GMT]]></title><description><![CDATA[<p>LLP64 (windows)</p>
<p>short 16-bit<br />
int 32-bit<br />
long 32-bit<br />
long long 64-bit<br />
pointer 64-bit</p>
<p>LP64 (meist Unix oder Unixoide (Mac OS X, Linux Derivate, Solaris etc...) ):</p>
<p>short 16-bit<br />
int 32-bit<br />
long 64-bit<br />
long long 64-bit<br />
pointer 64-bit</p>
<p>ILP64 (komische Systeme)</p>
<p>short 16-bit<br />
int 64-bit<br />
long 64-bit<br />
long long 64-bit<br />
pointer 64-bit</p>
<p>SILP64 (kenn ich nix)</p>
<p>alles 64-bit</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1944368</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1944368</guid><dc:creator><![CDATA[karolherbst]]></dc:creator><pubDate>Wed, 25 Aug 2010 19:21:11 GMT</pubDate></item><item><title><![CDATA[Reply to Größe Datentypen on Wed, 25 Aug 2010 19:42:32 GMT]]></title><description><![CDATA[<p>padreigh schrieb:</p>
<blockquote>
<p>Ubuntu</p>
<pre><code>UINT_MAX  :           4294967295 
ULONG_MAX : 18446744073709551615 
ULLONG_MAX: 18446744073709551615
</code></pre>
</blockquote>
<p>Das gilt nur für 64-Bit Versionen</p>
<p>Bei meinem 32-Bit Ubuntu ist ein long auch nur 32 Bit breit.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1944372</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1944372</guid><dc:creator><![CDATA[krümelkacker]]></dc:creator><pubDate>Wed, 25 Aug 2010 19:42:32 GMT</pubDate></item><item><title><![CDATA[Reply to Größe Datentypen on Thu, 26 Aug 2010 12:01:09 GMT]]></title><description><![CDATA[<p>Achso, ok. Danke für die Antworten, überigs habe ich auch schon vorher mir <code>sizeof</code> nachgeguckt und habe mich da ebenso gwundert, aber jetzt ist alles klar.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1944615</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1944615</guid><dc:creator><![CDATA[C++H]]></dc:creator><pubDate>Thu, 26 Aug 2010 12:01:09 GMT</pubDate></item></channel></rss>