<?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[Anzahl von Elementen in einem Array]]></title><description><![CDATA[<p>Hallo !</p>
<p>Ich übergebe an eine Funktion ein Array jetzt muss ich herausfinden wieviele Elemente in diesem Array sind damit ich das Array dann um ein Element vergrößern kann. Ich habe schon was mit sizeof() probiert aber das klappt alles nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/74112/anzahl-von-elementen-in-einem-array</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 15:30:16 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/74112.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 17 May 2004 12:53:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Anzahl von Elementen in einem Array on Mon, 17 May 2004 12:53:38 GMT]]></title><description><![CDATA[<p>Hallo !</p>
<p>Ich übergebe an eine Funktion ein Array jetzt muss ich herausfinden wieviele Elemente in diesem Array sind damit ich das Array dann um ein Element vergrößern kann. Ich habe schon was mit sizeof() probiert aber das klappt alles nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/521930</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/521930</guid><dc:creator><![CDATA[cppboy]]></dc:creator><pubDate>Mon, 17 May 2004 12:53:38 GMT</pubDate></item><item><title><![CDATA[Reply to Anzahl von Elementen in einem Array on Mon, 17 May 2004 13:00:29 GMT]]></title><description><![CDATA[<p>was du suchst gibt es nicht.<br />
du musst die anzahl der elemente in deinem array mit übergeben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/521933</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/521933</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Mon, 17 May 2004 13:00:29 GMT</pubDate></item><item><title><![CDATA[Reply to Anzahl von Elementen in einem Array on Mon, 17 May 2004 13:01:51 GMT]]></title><description><![CDATA[<p>Was hat das mit WinAPI zu tun?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/521936</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/521936</guid><dc:creator><![CDATA[Shlo]]></dc:creator><pubDate>Mon, 17 May 2004 13:01:51 GMT</pubDate></item><item><title><![CDATA[Reply to Anzahl von Elementen in einem Array on Mon, 17 May 2004 13:04:05 GMT]]></title><description><![CDATA[<p>Ist die Anzahl der Elemente eines Arrays nicht sizeof(Array)/sizeof(ArrayTYP), also:</p>
<pre><code class="language-cpp">char Zeichen[5];
sizeof(Zeichen)/sizeof(char)
</code></pre>
<p>???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/521937</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/521937</guid><dc:creator><![CDATA[Hepi]]></dc:creator><pubDate>Mon, 17 May 2004 13:04:05 GMT</pubDate></item><item><title><![CDATA[Reply to Anzahl von Elementen in einem Array on Mon, 17 May 2004 13:07:34 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/2053">@hepi</a><br />
er hat doch geschrieben, das er an eine funktion ein array übergibt.<br />
das geht ja nur mit einem pointer und in der funktion bewirkt sizeof() gar nix du bekommst dann nur die grösse der pointers.</p>
<pre><code class="language-cpp">void func(int *array)
{
  sizeof(array); // geht nicht
}

int main(int argv, char *argc[])
{
  int test[256];

  func(test);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/521942</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/521942</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Mon, 17 May 2004 13:07:34 GMT</pubDate></item></channel></rss>