<?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[char* farbe[]]]></title><description><![CDATA[<p>Hallo<br />
Kann mir jemand sagen was das bedeutet char* farbe[]</p>
<p>ist das gleiche wie char farbe[50]<br />
Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/145651/char-farbe</link><generator>RSS for Node</generator><lastBuildDate>Thu, 03 Sep 2026 11:27:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/145651.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 30 Apr 2006 07:26:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to char* farbe[] on Sun, 30 Apr 2006 07:26:55 GMT]]></title><description><![CDATA[<p>Hallo<br />
Kann mir jemand sagen was das bedeutet char* farbe[]</p>
<p>ist das gleiche wie char farbe[50]<br />
Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1048073</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1048073</guid><dc:creator><![CDATA[nerko]]></dc:creator><pubDate>Sun, 30 Apr 2006 07:26:55 GMT</pubDate></item><item><title><![CDATA[Reply to char* farbe[] on Sun, 30 Apr 2006 07:43:01 GMT]]></title><description><![CDATA[<p>Hallo</p>
<pre><code class="language-cpp">char farbe[50]
</code></pre>
<p>ist ein Array von 50 einzelnen Chars.</p>
<pre><code class="language-cpp">char* farbe[]
</code></pre>
<p>ist ein Array von undefinierter Anzahl Pointern auf char.<br />
Im allgemeinen wird soetwas benutzt, um ein Array (desen Größe in einem weiterem parameter übergeben wird) von Null-Terminierten C-Strings an eine Funktiopn zu übergeben.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1048078</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1048078</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sun, 30 Apr 2006 07:43:01 GMT</pubDate></item><item><title><![CDATA[Reply to char* farbe[] on Sun, 30 Apr 2006 07:48:16 GMT]]></title><description><![CDATA[<p>hallo,</p>
<blockquote>
<p>1.) Kann mir jemand sagen was das bedeutet char* farbe[]</p>
<p>ist das gleiche wie char farbe[50]</p>
</blockquote>
<p>nein, ist nicht das gleiche. zuerst hast du: char *farbe[] und dies kannst noch so schreiben: char **farbe; und hier char farbe[50]; hast eine variable die 50 zeichen speichern kann. am ende muss ein \n (ende des strings). diese variable könntest du auch so schreiben: char *farbe = new char[50]; oder wenn du es in c schreibst musst malloc verwenden. die erste kannst aber für eine zb matrix verwenden: rows x cols, oder, oder... ich hoffe dass ich dir geholfen habe.</p>
<p>ach, ja 1.) dies heißt pointer auf array und da array wieder ein pointer ist kannst es so schreiben wie ich erklärt habe.</p>
<p>mfg,<br />
erno</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1048081</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1048081</guid><dc:creator><![CDATA[errno_h]]></dc:creator><pubDate>Sun, 30 Apr 2006 07:48:16 GMT</pubDate></item><item><title><![CDATA[Reply to char* farbe[] on Sun, 30 Apr 2006 07:50:16 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>errno_h schrieb:</p>
<blockquote>
<p>char farbe[50]; hast eine variable die 50 zeichen speichern kann. am ende muss ein \n (ende des strings).</p>
</blockquote>
<p>Nein ein <em>'\0'</em></p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1048084</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1048084</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sun, 30 Apr 2006 07:50:16 GMT</pubDate></item><item><title><![CDATA[Reply to char* farbe[] on Sun, 30 Apr 2006 08:41:08 GMT]]></title><description><![CDATA[<p>Fielen Dank!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1048109</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1048109</guid><dc:creator><![CDATA[nerko]]></dc:creator><pubDate>Sun, 30 Apr 2006 08:41:08 GMT</pubDate></item><item><title><![CDATA[Reply to char* farbe[] on Sun, 30 Apr 2006 09:59:13 GMT]]></title><description><![CDATA[<blockquote>
<p>Nein ein '\0'</p>
</blockquote>
<p>sorry mein fehler. danke <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";-)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1048187</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1048187</guid><dc:creator><![CDATA[errno_h]]></dc:creator><pubDate>Sun, 30 Apr 2006 09:59:13 GMT</pubDate></item><item><title><![CDATA[Reply to char* farbe[] on Mon, 01 May 2006 16:10:28 GMT]]></title><description><![CDATA[<p>akari schrieb:</p>
<blockquote>
<p>errno_h schrieb:</p>
<blockquote>
<p>char farbe[50]; hast eine variable die 50 zeichen speichern kann. am ende muss ein \n (ende des strings).</p>
</blockquote>
<p>Nein ein <em>'\0'</em></p>
</blockquote>
<p>Nicht mal das. Nullterminiert muss nur ein C-String sein, ein char Array ist aber nicht automatisch ein C-String.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1049079</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1049079</guid><dc:creator><![CDATA[groovemaster]]></dc:creator><pubDate>Mon, 01 May 2006 16:10:28 GMT</pubDate></item></channel></rss>