<?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[Anfängerfrage über char]]></title><description><![CDATA[<p>Hallo, mir ist grad aufgefallen wenn ich</p>
<pre><code class="language-cpp">char name[6];
</code></pre>
<p>anlege kann ich nur 5 zeichen reinschreiben. Wie kommt das?<br />
gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/276336/anfängerfrage-über-char</link><generator>RSS for Node</generator><lastBuildDate>Wed, 26 Aug 2026 11:06:02 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/276336.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 31 Oct 2010 14:59:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Anfängerfrage über char on Sun, 31 Oct 2010 14:59:37 GMT]]></title><description><![CDATA[<p>Hallo, mir ist grad aufgefallen wenn ich</p>
<pre><code class="language-cpp">char name[6];
</code></pre>
<p>anlege kann ich nur 5 zeichen reinschreiben. Wie kommt das?<br />
gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1973154</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1973154</guid><dc:creator><![CDATA[poko]]></dc:creator><pubDate>Sun, 31 Oct 2010 14:59:37 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage über char on Sun, 31 Oct 2010 15:01:23 GMT]]></title><description><![CDATA[<p>Da hast du bestimmt <code>name[0]</code> vergessen. <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/1973155</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1973155</guid><dc:creator><![CDATA[Ad aCTa]]></dc:creator><pubDate>Sun, 31 Oct 2010 15:01:23 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage über char on Sun, 31 Oct 2010 15:18:40 GMT]]></title><description><![CDATA[<p>C-Strings brauchen einen Sentinel (Nullterminator) am Ende. Ein C-String &quot;Hallo&quot; sieht im Speicher so aus:</p>
<pre><code>| H | a | l | l | o | \0 |
+---+---+---+---+---+----+
</code></pre>
<p>5 Zeichen + Nullterminator = 6.</p>
<p>Übrigens solltest du in C++ besser std::string benutzen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1973159</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1973159</guid><dc:creator><![CDATA[seldon]]></dc:creator><pubDate>Sun, 31 Oct 2010 15:18:40 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage über char on Sun, 31 Oct 2010 16:02:31 GMT]]></title><description><![CDATA[<p>Vielen dank!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1973187</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1973187</guid><dc:creator><![CDATA[poko]]></dc:creator><pubDate>Sun, 31 Oct 2010 16:02:31 GMT</pubDate></item></channel></rss>