<?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[Maximale Wertanzahl eines int-Arrays]]></title><description><![CDATA[<p>Hi Leute!</p>
<p>Ich hab heute mal ausprobiert, wie viel Elemente ein int-Array aufnehmen kann. Ich hab dann die Erfahrung gemacht, dass so 250000 (260000 Elemente gehen dann schon nicht mehr!) Elemente wohl noch gehen.</p>
<p>Hier der Code:</p>
<p>int main()<br />
{<br />
unsigned int test[1000000];</p>
<p>system(&quot;PAUSE&quot;);<br />
return 0;<br />
}</p>
<p>Wie kann ich nun c anweisen, dass ich mehr als 260000 Elemente haben möchte?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/315966/maximale-wertanzahl-eines-int-arrays</link><generator>RSS for Node</generator><lastBuildDate>Thu, 30 Jul 2026 07:15:05 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/315966.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 17 Apr 2013 15:58:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Maximale Wertanzahl eines int-Arrays on Wed, 17 Apr 2013 15:58:02 GMT]]></title><description><![CDATA[<p>Hi Leute!</p>
<p>Ich hab heute mal ausprobiert, wie viel Elemente ein int-Array aufnehmen kann. Ich hab dann die Erfahrung gemacht, dass so 250000 (260000 Elemente gehen dann schon nicht mehr!) Elemente wohl noch gehen.</p>
<p>Hier der Code:</p>
<p>int main()<br />
{<br />
unsigned int test[1000000];</p>
<p>system(&quot;PAUSE&quot;);<br />
return 0;<br />
}</p>
<p>Wie kann ich nun c anweisen, dass ich mehr als 260000 Elemente haben möchte?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2316271</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2316271</guid><dc:creator><![CDATA[vip*r]]></dc:creator><pubDate>Wed, 17 Apr 2013 15:58:02 GMT</pubDate></item><item><title><![CDATA[Reply to Maximale Wertanzahl eines int-Arrays on Wed, 17 Apr 2013 16:00:42 GMT]]></title><description><![CDATA[<p>Es gibt, mal abgesehen vom Wertebereich von size_t, keine Beschraenkung fuer Arraygroessen. Du wirst wohl versuchen, zu viel Speicher am Stack zu allozieren, der ueblicherweise relativ klein ist (ein paar, wenige MB). Entweder, du aenderst also die Stackgroesse, oder - noch viel besser - du benutzt einen std::vector bzw. unique_ptr&lt;T[]&gt;.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2316273</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2316273</guid><dc:creator><![CDATA[Kellerautomat]]></dc:creator><pubDate>Wed, 17 Apr 2013 16:00:42 GMT</pubDate></item><item><title><![CDATA[Reply to Maximale Wertanzahl eines int-Arrays on Wed, 17 Apr 2013 17:22:48 GMT]]></title><description><![CDATA[<p>vipor, welche speicherbereiche kennst du in C++? (Es gibt drei)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2316295</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2316295</guid><dc:creator><![CDATA[krümelkacker]]></dc:creator><pubDate>Wed, 17 Apr 2013 17:22:48 GMT</pubDate></item><item><title><![CDATA[Reply to Maximale Wertanzahl eines int-Arrays on Thu, 18 Apr 2013 10:08:08 GMT]]></title><description><![CDATA[<p>Du kannst versuchen</p>
<pre><code>int main()
{
static unsigned int test[1000000];

system(&quot;PAUSE&quot;);
return 0;
}
</code></pre>
<p>oder speicherbezogen äquivalent</p>
<pre><code>unsigned int test[1000000];
int main()
{

system(&quot;PAUSE&quot;);
return 0;
}
</code></pre>
<p>oder dynamisch</p>
<pre><code>int main()
{
unsigned int *test=calloc(1000000,sizeof*test);

system(&quot;PAUSE&quot;);
free(test);
return 0;
}
</code></pre>
<p>Was hat das Ganze mit C++ zu tun?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2316443</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2316443</guid><dc:creator><![CDATA[Wutz]]></dc:creator><pubDate>Thu, 18 Apr 2013 10:08:08 GMT</pubDate></item><item><title><![CDATA[Reply to Maximale Wertanzahl eines int-Arrays on Thu, 18 Apr 2013 10:44:47 GMT]]></title><description><![CDATA[<p>Wutz schrieb:</p>
<blockquote>
<p>Was hat das Ganze mit C++ zu tun?</p>
</blockquote>
<p>Bis zu deinem calloc war nichts in diesem Thread typisch für C.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2316447</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2316447</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Thu, 18 Apr 2013 10:44:47 GMT</pubDate></item><item><title><![CDATA[Reply to Maximale Wertanzahl eines int-Arrays on Thu, 18 Apr 2013 11:02:47 GMT]]></title><description><![CDATA[<p>krümelkacker schrieb:</p>
<blockquote>
<p>vipor, welche speicherbereiche kennst du in C++? (Es gibt drei)</p>
</blockquote>
<p>Ich kenn sogar 5!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2316453</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2316453</guid><dc:creator><![CDATA[Jockelx]]></dc:creator><pubDate>Thu, 18 Apr 2013 11:02:47 GMT</pubDate></item><item><title><![CDATA[Reply to Maximale Wertanzahl eines int-Arrays on Thu, 18 Apr 2013 11:16:32 GMT]]></title><description><![CDATA[<p>Jockelx schrieb:</p>
<blockquote>
<p>krümelkacker schrieb:</p>
<blockquote>
<p>vipor, welche speicherbereiche kennst du in C++? (Es gibt drei)</p>
</blockquote>
<p>Ich kenn sogar 5!</p>
</blockquote>
<p>Selbst im C++11-Klugscheißermodus komme ich nur auf 4.</p>
<p>Ich möchte sehen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2316459</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2316459</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Thu, 18 Apr 2013 11:16:32 GMT</pubDate></item><item><title><![CDATA[Reply to Maximale Wertanzahl eines int-Arrays on Thu, 18 Apr 2013 11:25:56 GMT]]></title><description><![CDATA[<p>Der Begriff &quot;Speicherbereich&quot; ist vielleicht nicht ganz eindeutig.</p>
<p>Eure 3 waren wohl Heap/Stack/Const.<br />
Sutter hat noch Global/Free:</p>
<p><a href="http://www.gotw.ca/gotw/009.htm" rel="nofollow">http://www.gotw.ca/gotw/009.htm</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2316463</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2316463</guid><dc:creator><![CDATA[Jockelx]]></dc:creator><pubDate>Thu, 18 Apr 2013 11:25:56 GMT</pubDate></item><item><title><![CDATA[Reply to Maximale Wertanzahl eines int-Arrays on Thu, 18 Apr 2013 11:34:16 GMT]]></title><description><![CDATA[<p>Jockelx schrieb:</p>
<blockquote>
<p>Eure 3 waren wohl Heap/Stack/Const.</p>
</blockquote>
<p>Nein, die waren static, heap, stack. Und SeppJ wollte wohl noch thread local einwerfen. const und free als eignen Speicherbereich zu zählen, na ja, weiß nicht so recht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2316466</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2316466</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Thu, 18 Apr 2013 11:34:16 GMT</pubDate></item><item><title><![CDATA[Reply to Maximale Wertanzahl eines int-Arrays on Thu, 18 Apr 2013 11:38:54 GMT]]></title><description><![CDATA[<p>Meine waren static, automatic, dynamic und für Klugscheißer noch thread.</p>
<p>Zu viele verschiedene Worte, die alle (fast) das gleiche bedeuten...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2316470</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2316470</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Thu, 18 Apr 2013 11:38:54 GMT</pubDate></item><item><title><![CDATA[Reply to Maximale Wertanzahl eines int-Arrays on Thu, 18 Apr 2013 14:59:44 GMT]]></title><description><![CDATA[<p>Wenn wir schon den Klugscheißermodus anwerfen: Es handelt sich bei all diesen Dingen nicht um Speicherbereiche, sondern um Speicherdauern. Ob ein funktionslokales Array im Speicher in der Nähe anderer Variablen mit automatischer Speicherdauer liegt, ist vom Standard nicht vorgeschrieben. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2316544</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2316544</guid><dc:creator><![CDATA[seldon]]></dc:creator><pubDate>Thu, 18 Apr 2013 14:59:44 GMT</pubDate></item></channel></rss>