<?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[Mehrdimensionale Arrays nur mit Grössenangabe?]]></title><description><![CDATA[<p>Hallo</p>
<p>Warum muss man bei Mehrdimensionale Arrays explizit die Grösse angeben und bei normalen Arrays nicht?</p>
<pre><code class="language-cpp">int array1[] = {1, 2, 3}; //OK!
int array2[][] = {{1, 2, 3}, {1, 2, 3}}; //NICHT OK!
int array3[2][3] = {{1, 2, 3}, {1, 2, 3}}; //OK!
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/246802/mehrdimensionale-arrays-nur-mit-grössenangabe</link><generator>RSS for Node</generator><lastBuildDate>Thu, 17 Sep 2026 20:47:51 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/246802.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 01 Aug 2009 21:13:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Mehrdimensionale Arrays nur mit Grössenangabe? on Sat, 01 Aug 2009 21:13:04 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Warum muss man bei Mehrdimensionale Arrays explizit die Grösse angeben und bei normalen Arrays nicht?</p>
<pre><code class="language-cpp">int array1[] = {1, 2, 3}; //OK!
int array2[][] = {{1, 2, 3}, {1, 2, 3}}; //NICHT OK!
int array3[2][3] = {{1, 2, 3}, {1, 2, 3}}; //OK!
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1753751</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1753751</guid><dc:creator><![CDATA[knoffe]]></dc:creator><pubDate>Sat, 01 Aug 2009 21:13:04 GMT</pubDate></item><item><title><![CDATA[Reply to Mehrdimensionale Arrays nur mit Grössenangabe? on Sat, 01 Aug 2009 21:21:35 GMT]]></title><description><![CDATA[<p>Weils innendrin keine mehrdimenionalen Arrays gibt.</p>
<pre><code class="language-cpp">unbekanntertyp array3[3] = {1, 2.5, '0'}; //NICHT OK
</code></pre>
<p>Kann Array nicht anlegen, weil ich gar nicht weiß, wie groß ein Element ist.</p>
<pre><code class="language-cpp">int array3[2][3] = {{1, 2, 3}, {1, 2, 3}}; //OK!
</code></pre>
<p>Ein Array von 2 Arrays von 3 int.</p>
<pre><code class="language-cpp">int array3[2][3] = {{1}, {1, 2}}; //OK!
</code></pre>
<p>Wird mit nullen aufgefüllt.</p>
<pre><code class="language-cpp">int array3[][3] = {{1, 2, 3}, {1, 2}}; //OK!
</code></pre>
<p>Ein Array von Arrays von 3 int, auch ein wenig aufgefüllt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1753757</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1753757</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Sat, 01 Aug 2009 21:21:35 GMT</pubDate></item></channel></rss>