<?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[Mehrfache Indirektion]]></title><description><![CDATA[<p>Ich komm nicht mehr weiter.</p>
<p>Folgendes Beispielprogramm habe ich aus einem Buch durchgearbeitet:</p>
<p>int iwert = 100;<br />
int *iptr = &amp;iwert;<br />
int **iptrptr = &amp;iptr;</p>
<p>cout&lt;&lt;&quot;*iptr: &quot;&lt;&lt;*iptr&lt;&lt;'\n';<br />
cout&lt;&lt;&quot;*iptrptr: &quot;&lt;&lt;**iptrptr&lt;&lt;'\n';</p>
<p>**iptrptr = 222;</p>
<p>cout&lt;&lt;&quot;*iptr: &quot;&lt;&lt;*iptr&lt;&lt;'\n';<br />
cout&lt;&lt;&quot;**iptrptr: &quot;&lt;&lt;**iptrptr&lt;&lt;'\n';</p>
<p>*iptr = 333;</p>
<p>cout&lt;&lt;&quot;*iptr: &quot;&lt;&lt;*iptr&lt;&lt;'\n';<br />
cout&lt;&lt;&quot;**iptrptr: &quot;&lt;&lt;**iptrptr&lt;&lt;'\n';</p>
<p>Der Buch Autor fasst dies nun so zusammen:</p>
<p>Dass iptrptr eine Variable vom Typ char** ist, die die Adresse von iptr beinhaltet. *iptrptr ist eine Variable vom Typ char* welche den Wert von iwert beinhaltet und **iptrptr ist eine Variable vom Typ char mit dem eigentlichen Wert von iwert.</p>
<p>Ich frage mich nun: Wieso ist iptr, *iptr, **iptrptr überhaupt vom typ char und was haben die * hinter dem char verloren.</p>
<p>hoffe ihr könnt mir das plausibel erklären...danke schon mal im voraus</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/200794/mehrfache-indirektion</link><generator>RSS for Node</generator><lastBuildDate>Mon, 05 Oct 2026 03:09:33 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/200794.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 Dec 2007 19:58:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Mehrfache Indirektion on Wed, 19 Dec 2007 19:58:30 GMT]]></title><description><![CDATA[<p>Ich komm nicht mehr weiter.</p>
<p>Folgendes Beispielprogramm habe ich aus einem Buch durchgearbeitet:</p>
<p>int iwert = 100;<br />
int *iptr = &amp;iwert;<br />
int **iptrptr = &amp;iptr;</p>
<p>cout&lt;&lt;&quot;*iptr: &quot;&lt;&lt;*iptr&lt;&lt;'\n';<br />
cout&lt;&lt;&quot;*iptrptr: &quot;&lt;&lt;**iptrptr&lt;&lt;'\n';</p>
<p>**iptrptr = 222;</p>
<p>cout&lt;&lt;&quot;*iptr: &quot;&lt;&lt;*iptr&lt;&lt;'\n';<br />
cout&lt;&lt;&quot;**iptrptr: &quot;&lt;&lt;**iptrptr&lt;&lt;'\n';</p>
<p>*iptr = 333;</p>
<p>cout&lt;&lt;&quot;*iptr: &quot;&lt;&lt;*iptr&lt;&lt;'\n';<br />
cout&lt;&lt;&quot;**iptrptr: &quot;&lt;&lt;**iptrptr&lt;&lt;'\n';</p>
<p>Der Buch Autor fasst dies nun so zusammen:</p>
<p>Dass iptrptr eine Variable vom Typ char** ist, die die Adresse von iptr beinhaltet. *iptrptr ist eine Variable vom Typ char* welche den Wert von iwert beinhaltet und **iptrptr ist eine Variable vom Typ char mit dem eigentlichen Wert von iwert.</p>
<p>Ich frage mich nun: Wieso ist iptr, *iptr, **iptrptr überhaupt vom typ char und was haben die * hinter dem char verloren.</p>
<p>hoffe ihr könnt mir das plausibel erklären...danke schon mal im voraus</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1423423</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1423423</guid><dc:creator><![CDATA[BOSS]]></dc:creator><pubDate>Wed, 19 Dec 2007 19:58:30 GMT</pubDate></item><item><title><![CDATA[Reply to Mehrfache Indirektion on Wed, 19 Dec 2007 21:02:42 GMT]]></title><description><![CDATA[<p>Der Datentyp von Pointern ist<br />
z.B. char *, int *, void *, double *, float <em>.<br />
Ein Stern (</em>) alleine macht noch keinen Pointer aus!</p>
<p>Zeh Mau</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1423457</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1423457</guid><dc:creator><![CDATA[Zeh Mau]]></dc:creator><pubDate>Wed, 19 Dec 2007 21:02:42 GMT</pubDate></item></channel></rss>