<?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[Valgrind]]></title><description><![CDATA[<p>Schauen Sie sich folgendes Programm an:</p>
<pre><code>#include &lt;iostream&gt;

using namespace std;
int main() {

   double null;
   double *a = new double[5];

   a[0] = !null;
   a[1] = 1;

   for(int i=1;i&lt;=5;i++) {
      double tmp = a[i-1] + a[i-2];
      a[i] = tmp;

      if(tmp) cout &lt;&lt; &quot;Neue Fibonacci-Zahl: &quot;;
      cout &lt;&lt; tmp;
      cout &lt;&lt; endl;
  }
}
</code></pre>
<p>Mit etwas Glück berechnet es tatsächlich Fibonnaci Zahlen (compiler-abhängig).</p>
<p>(a) Kompilieren Sie das Programm und führen Sie es aus.</p>
<p>(b) Überwachen Sie die Speicherzugriffe des Programms mit valgrind. Kommentieren Sie adzu Zeile 17, die sehr viele Fehlermeldungen erzeugt.</p>
<p>(c) Ordnen Sie jede Meldung von valgrind einem Programmierfehler zu und beheben Sie ihn.</p>
<p><strong>Zu a)</strong> Ich habe das Programm kompiliert und ausgeführt:</p>
<pre><code>g++ -g testdatei.cpp -o test
test
Neue Fibonacci-Zahl: 1
Neue Fibonacci-Zahl: 2
Neue Fibonacci-Zahl: 3
Neue Fibonacci-Zahl: 5
Neue Fibonacci-Zahl: 8
</code></pre>
<p><strong>Zu b)</strong> Mit dem Befehl</p>
<pre><code>valgrind test
</code></pre>
<p>erscheinen jede Menge Fehler.<br />
Man muss z.B. nach Zeile 19 Folgendes ergänzen:</p>
<pre><code>delete []a;
</code></pre>
<p>also den allozierten Speicherplatz wieder löschen.</p>
<p>Außerdem wird ganz oft angezeigt, dass man in Zeile 17 nicht initialisierte Werte benutzt. Aber ich weiß nicht, wieso das der Fall ist. In Zeile 13 wird tmp doch initialisiert.</p>
<p><strong>Zu c)</strong> Naja, wie gesagt: Den Fehler mit dem nicht wieder gelöschten Speicherplatz habe ich behoben und den mit tmp in Zeile 17 noch nicht. Sonst sehe in valgrind keine Fehler.</p>
<p>Edit: Was bedeutet dieses komische &quot;!null&quot;?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/317972/valgrind</link><generator>RSS for Node</generator><lastBuildDate>Mon, 27 Jul 2026 22:52:24 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/317972.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Jun 2013 12:52:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Valgrind on Wed, 26 Jun 2013 12:53:56 GMT]]></title><description><![CDATA[<p>Schauen Sie sich folgendes Programm an:</p>
<pre><code>#include &lt;iostream&gt;

using namespace std;
int main() {

   double null;
   double *a = new double[5];

   a[0] = !null;
   a[1] = 1;

   for(int i=1;i&lt;=5;i++) {
      double tmp = a[i-1] + a[i-2];
      a[i] = tmp;

      if(tmp) cout &lt;&lt; &quot;Neue Fibonacci-Zahl: &quot;;
      cout &lt;&lt; tmp;
      cout &lt;&lt; endl;
  }
}
</code></pre>
<p>Mit etwas Glück berechnet es tatsächlich Fibonnaci Zahlen (compiler-abhängig).</p>
<p>(a) Kompilieren Sie das Programm und führen Sie es aus.</p>
<p>(b) Überwachen Sie die Speicherzugriffe des Programms mit valgrind. Kommentieren Sie adzu Zeile 17, die sehr viele Fehlermeldungen erzeugt.</p>
<p>(c) Ordnen Sie jede Meldung von valgrind einem Programmierfehler zu und beheben Sie ihn.</p>
<p><strong>Zu a)</strong> Ich habe das Programm kompiliert und ausgeführt:</p>
<pre><code>g++ -g testdatei.cpp -o test
test
Neue Fibonacci-Zahl: 1
Neue Fibonacci-Zahl: 2
Neue Fibonacci-Zahl: 3
Neue Fibonacci-Zahl: 5
Neue Fibonacci-Zahl: 8
</code></pre>
<p><strong>Zu b)</strong> Mit dem Befehl</p>
<pre><code>valgrind test
</code></pre>
<p>erscheinen jede Menge Fehler.<br />
Man muss z.B. nach Zeile 19 Folgendes ergänzen:</p>
<pre><code>delete []a;
</code></pre>
<p>also den allozierten Speicherplatz wieder löschen.</p>
<p>Außerdem wird ganz oft angezeigt, dass man in Zeile 17 nicht initialisierte Werte benutzt. Aber ich weiß nicht, wieso das der Fall ist. In Zeile 13 wird tmp doch initialisiert.</p>
<p><strong>Zu c)</strong> Naja, wie gesagt: Den Fehler mit dem nicht wieder gelöschten Speicherplatz habe ich behoben und den mit tmp in Zeile 17 noch nicht. Sonst sehe in valgrind keine Fehler.</p>
<p>Edit: Was bedeutet dieses komische &quot;!null&quot;?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334513</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334513</guid><dc:creator><![CDATA[LinuxC_newbie]]></dc:creator><pubDate>Wed, 26 Jun 2013 12:53:56 GMT</pubDate></item><item><title><![CDATA[Reply to Valgrind on Wed, 26 Jun 2013 13:04:09 GMT]]></title><description><![CDATA[<p>Fehler finden sich in den Zeilen 9, 13 und 14.<br />
Die Ursachen dieser Fehler sind in den Zeilen 6 und 12 (und ggf. 7) zu suchen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334514</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334514</guid><dc:creator><![CDATA[camper]]></dc:creator><pubDate>Wed, 26 Jun 2013 13:04:09 GMT</pubDate></item><item><title><![CDATA[Reply to Valgrind on Wed, 26 Jun 2013 13:11:57 GMT]]></title><description><![CDATA[<p>Mir ist nicht ganz klar, was die Fehler sind, würde aber vermuten, dass man vielleicht den Nullzeiger mit null meint?</p>
<p>Also vielleicht die Zeilen 6 und 7 irgendwie so abändern:</p>
<pre><code>double *a=null;
a = new double[5]
</code></pre>
<p>Aber was soll dann dieses</p>
<pre><code>a[0] = !null
</code></pre>
<p>sein?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334517</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334517</guid><dc:creator><![CDATA[LinuxC_newbie]]></dc:creator><pubDate>Wed, 26 Jun 2013 13:11:57 GMT</pubDate></item><item><title><![CDATA[Reply to Valgrind on Wed, 26 Jun 2013 13:23:11 GMT]]></title><description><![CDATA[<p>LinuxC_newbie schrieb:</p>
<blockquote>
<p>Mir ist nicht ganz klar, was die Fehler sind, würde aber vermuten, dass man vielleicht den Nullzeiger mit null meint?</p>
</blockquote>
<p>Nein, null meint hier Null</p>
<blockquote>
<p>Also vielleicht die Zeilen 6 und 7 irgendwie so abändern:</p>
<pre><code>double *a=null;
a = new double[5]
</code></pre>
</blockquote>
<p>Nicht raten, denken! Wozu sollte hier ein Nullzeiger gut sein? Mal angenommen, <code>null == 0</code> (was es nicht ist, siehe camper), was ist dann <code>!0</code> ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334521</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334521</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Wed, 26 Jun 2013 13:23:11 GMT</pubDate></item><item><title><![CDATA[Reply to Valgrind on Wed, 26 Jun 2013 13:28:08 GMT]]></title><description><![CDATA[<p>Das heißt, in Zeile 6 deklariert man einfach eine double-Variable namens null?</p>
<p>Aber was soll denn dann !null sein?</p>
<p>Der erste Feldeintrag wird ja auf !null gesetzt, aber was soll das sein?</p>
<p>Da es um Fibonacci-Zahlen geht, würde a[0]=0 Sinn machen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334522</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334522</guid><dc:creator><![CDATA[LinuxC_newbie]]></dc:creator><pubDate>Wed, 26 Jun 2013 13:28:08 GMT</pubDate></item><item><title><![CDATA[Reply to Valgrind on Wed, 26 Jun 2013 13:37:18 GMT]]></title><description><![CDATA[<p>LinuxC_newbie schrieb:</p>
<blockquote>
<p>Das heißt, in Zeile 6 deklariert man einfach eine double-Variable namens null?</p>
<p>Aber was soll denn dann !null sein?</p>
</blockquote>
<p>Höchst wahrscheinlich 1. Ich denke, es kann aber auch 0 sein.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334528</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334528</guid><dc:creator><![CDATA[out]]></dc:creator><pubDate>Wed, 26 Jun 2013 13:37:18 GMT</pubDate></item><item><title><![CDATA[Reply to Valgrind on Wed, 26 Jun 2013 13:43:08 GMT]]></title><description><![CDATA[<p>out schrieb:</p>
<blockquote>
<p><s>Höchst wahrscheinlich 1. Ich denke, es kann aber auch 0 sein.</s></p>
</blockquote>
<p>Huch <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /> Vergiß mein Beitrag. (diese verwirrenden Bezeichner)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334529</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334529</guid><dc:creator><![CDATA[out]]></dc:creator><pubDate>Wed, 26 Jun 2013 13:43:08 GMT</pubDate></item><item><title><![CDATA[Reply to Valgrind on Wed, 26 Jun 2013 13:45:47 GMT]]></title><description><![CDATA[<p>Was war daran jetzt denn nicht richtig?</p>
<p>Ich bin (wie fast immer) verwirrt. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
<p>Edit: Also mein Compiler versteht in diesem Fall unter !null</p>
<ol>
<li></li>
</ol>
]]></description><link>https://www.c-plusplus.net/forum/post/2334530</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334530</guid><dc:creator><![CDATA[LinuxC_newbie]]></dc:creator><pubDate>Wed, 26 Jun 2013 13:45:47 GMT</pubDate></item><item><title><![CDATA[Reply to Valgrind on Wed, 26 Jun 2013 13:52:58 GMT]]></title><description><![CDATA[<p>Mal schauen, ob ich das richtig verstanden habe:</p>
<p>Manche Compiler verstehen unter der Negation einer double-Variablen offenbar die Zahl 1.</p>
<p>Hier wäre also a[0] = 1.</p>
<p>Desweiteren kommt ja in der for-Schleife für i=1 dann a[-1] vor und die Frage ist, was das sein soll.</p>
<p>Bei MIR ist es zum Beispiel 2.07338e-317 und da man ja double hat.. würde das wohl auf 0 gerundet.</p>
<p>Somit hätte man hier zufällig die richtigen Zahlen erwischt, sodass sich die gewünschte Ausgabe ergibt.</p>
<p>----Korrekt muss man aber a[0]=0 setzen und die double Variable weglassen oder zum Beispiel double null = 0 setzen und dann a[0]=null.</p>
<p>Entsprechend muss man dann die Schleife anpassen, indem man sie ab 2 starten lässt. dann bekommt man allerdings nur die Fibonacci Zahlen 2, 3 und 5 ausgegeben. Dafür hat man aber ein sauber funktionierendes Programm.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334532</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334532</guid><dc:creator><![CDATA[LinuxC_newbie]]></dc:creator><pubDate>Wed, 26 Jun 2013 13:52:58 GMT</pubDate></item><item><title><![CDATA[Reply to Valgrind on Wed, 26 Jun 2013 14:02:48 GMT]]></title><description><![CDATA[<p>Das ganze Programm ist doch absichtlich verwirrend und fehlerhaft geschrieben, das ist doch gerade der Sinn der Aufgabe! Wie würdest du denn naiv die Fibonaccifolge berechnen? Mit welchen Werten fängst du an? Wenn du das weißt, dann kannst du Zeilen 6-10 erklären.</p>
<p>!0 ist true (weil es nicht 0 ist <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /> ). true ist 1. Immer. Nicht auf <em>manchen</em> Compilern.</p>
<blockquote>
<p>Desweiteren kommt ja in der for-Schleife für i=1 dann a[-1] vor und die Frage ist, was das sein soll.</p>
</blockquote>
<p>Ich schlage vor: Einer der zu findenden Fehler.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334537</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334537</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Wed, 26 Jun 2013 14:02:48 GMT</pubDate></item><item><title><![CDATA[Reply to Valgrind on Wed, 26 Jun 2013 14:12:05 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>Wie würdest du denn naiv die Fibonaccifolge berechnen? Mit welchen Werten fängst du an? Wenn du das weißt, dann kannst du Zeilen 6-10 erklären.</p>
</blockquote>
<p>Anscheinend geht es ja hier darum, die ersten 5 Fibonacci-Zahlen auszugeben und zwar nach den ersten beiden Gliedern 0 und 1.</p>
<p>Ich würde das so machen:</p>
<pre><code>#include &lt;iostream&gt;
using namespace std;

int main() {
 double *a = new double[7];
 a[0]=0;
 a[1]=1;

 for(int i=2; i&lt;7; i++) {
   a[i] = a[i-1] + a[i-2];

  cout &lt;&lt; a[i] &lt;&lt; endl;
}
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2334540</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334540</guid><dc:creator><![CDATA[LinuxC_newbie]]></dc:creator><pubDate>Wed, 26 Jun 2013 14:12:05 GMT</pubDate></item><item><title><![CDATA[Reply to Valgrind on Wed, 26 Jun 2013 14:22:49 GMT]]></title><description><![CDATA[<p>Jetzt lass mal die Null am Anfang weg und der Code dürfte dir bekannt vorkommen.</p>
<p>Ich hoffe übrigens mal, dass du das nicht wirklich so machen würdest, sondern dich von dem schlechten Vorbild zu Designfehlern verleiten hast lassen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334541</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334541</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Wed, 26 Jun 2013 14:22:49 GMT</pubDate></item><item><title><![CDATA[Reply to Valgrind on Wed, 26 Jun 2013 14:24:36 GMT]]></title><description><![CDATA[<p>Es geht mir darum, zu verstehen, wieso der gegebene Code klappen KANN.</p>
<p>Ich sehe nämlich nicht, wieso!...</p>
<p>double null ist irgendeine double-Variable...</p>
<p>Und was ist dann !null?</p>
<p>Ich kapier es nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334542</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334542</guid><dc:creator><![CDATA[LinuxC_newbie]]></dc:creator><pubDate>Wed, 26 Jun 2013 14:24:36 GMT</pubDate></item><item><title><![CDATA[Reply to Valgrind on Wed, 26 Jun 2013 14:33:22 GMT]]></title><description><![CDATA[<p>äquivalent wäre</p>
<pre><code class="language-cpp">double null;
   bool b = null;

   a[0] = !b;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2334545</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334545</guid><dc:creator><![CDATA[camper]]></dc:creator><pubDate>Wed, 26 Jun 2013 14:33:22 GMT</pubDate></item><item><title><![CDATA[Reply to Valgrind on Wed, 26 Jun 2013 14:46:07 GMT]]></title><description><![CDATA[<p>Achso!!</p>
<p>double null ist immer der Wert 0?</p>
<p>Ich habe gedacht, dass wäre nur eine Deklination irgendeiner double-Variablen und noch gar nicht initialisiert!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334548</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334548</guid><dc:creator><![CDATA[LinuxC_newbie]]></dc:creator><pubDate>Wed, 26 Jun 2013 14:46:07 GMT</pubDate></item><item><title><![CDATA[Reply to Valgrind on Wed, 26 Jun 2013 14:47:37 GMT]]></title><description><![CDATA[<pre><code>void foo(double d)
{
  if (d)
    cout &lt;&lt; &quot;Foo!\n&quot;;
}

void bar(double d)
{
  if (!d)
    cout &lt;&lt; &quot;Bar!\n&quot;;
}
</code></pre>
<p>Beschreibe mal die Ausgaben von foo und bar für verschiedene, ausgewählte Werte von d.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334549</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334549</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Wed, 26 Jun 2013 14:47:37 GMT</pubDate></item><item><title><![CDATA[Reply to Valgrind on Wed, 26 Jun 2013 14:56:56 GMT]]></title><description><![CDATA[<p>z.B.</p>
<p>foo(0) gibt nichts aus<br />
foo(2) gibt Foo! aus<br />
bar(0) gibt Bar! aus<br />
bar(2) gibt nichts aus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334550</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334550</guid><dc:creator><![CDATA[LinuxC_newbie]]></dc:creator><pubDate>Wed, 26 Jun 2013 14:56:56 GMT</pubDate></item><item><title><![CDATA[Reply to Valgrind on Wed, 26 Jun 2013 15:06:40 GMT]]></title><description><![CDATA[<p>Lernst du daraus etwas über <code>!null</code> ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334554</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334554</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Wed, 26 Jun 2013 15:06:40 GMT</pubDate></item><item><title><![CDATA[Reply to Valgrind on Wed, 26 Jun 2013 15:07:52 GMT]]></title><description><![CDATA[<p>Also anscheinend ist es so, daß mein Compiler einer nicht initialisierten double-Variablen den Wert 0 zuweist, daß dies aber keinesfalls sein muss und stattdessen auch die Speicheradresse zugewiesen werden kann.</p>
<p>Wie auch immer: In beiden Fällen steht in a[0] ein Wert, der nicht erwünscht ist, denn dort soll weder 1 noch irgendeine Negation von einer Speicheradresse stehen (wobei letzteres ja irgendwie auch noch weniger Sinn macht, weil: was soll das Negierte einer Adresse sein?).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334556</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334556</guid><dc:creator><![CDATA[LinuxC_newbie]]></dc:creator><pubDate>Wed, 26 Jun 2013 15:07:52 GMT</pubDate></item><item><title><![CDATA[Reply to Valgrind on Wed, 26 Jun 2013 15:14:29 GMT]]></title><description><![CDATA[<p>LinuxC_newbie schrieb:</p>
<blockquote>
<p>Also anscheinend ist es so, daß mein Compiler einer nicht initialisierten double-Variablen den Wert 0 zuweist, daß dies aber keinesfalls sein muss und stattdessen auch die Speicheradresse zugewiesen werden kann.</p>
</blockquote>
<p>Ehrlich: Ziemlicher Quark. Der Anfang geht noch, aber danach reihst du einfach ein paar Fachwörter aneinander, die du nicht verstehst, von denen du denkst, sie könnten relevant sein.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334558</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334558</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Wed, 26 Jun 2013 15:14:29 GMT</pubDate></item><item><title><![CDATA[Reply to Valgrind on Wed, 26 Jun 2013 15:41:08 GMT]]></title><description><![CDATA[<p>Dann ist es eben Quark!</p>
<p>Ich kann auch nicht mehr als sagen: dass ich es nicht verstehe.</p>
<p>Wenn ich als Antwort Gegenfragen bekomme, die die gleiche Problematik behandeln, dann drehe ich mich notwendigerweisee im Kreis.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334565</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334565</guid><dc:creator><![CDATA[LinuxC_newbie]]></dc:creator><pubDate>Wed, 26 Jun 2013 15:41:08 GMT</pubDate></item><item><title><![CDATA[Reply to Valgrind on Wed, 26 Jun 2013 15:58:10 GMT]]></title><description><![CDATA[<p>Wo liegt denn hier das Problem? :p</p>
<p>Eine nicht-initialisierte Variable hat irgendeinen Wert, der eben gerade zufällig an dem Speicherbereich steht, welcher der Variable zugeordnet wurde. Das kann 0 sein, das kann 1 sein, das kann 987654321 sein. Kurz: Der Wert einer nicht-initialisierte Variable ist zufällig.<br />
Dann... <code>!0</code> ergibt <code>true</code> . <code>!alles_andere</code> ergibt <code>false</code> .</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334571</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334571</guid><dc:creator><![CDATA[out]]></dc:creator><pubDate>Wed, 26 Jun 2013 15:58:10 GMT</pubDate></item><item><title><![CDATA[Reply to Valgrind on Wed, 26 Jun 2013 16:11:45 GMT]]></title><description><![CDATA[<p>Danke.</p>
<p>Dass !0 true ist, verstehe ich.</p>
<p>Aber wieso ist z.B. !43 0, also false?</p>
<p>nicht 43 kann doch ganz viel heißen... während nicht 0 bedeutet, dass man eben eine Zahl ungleich 0 hat (und damit true), kann doch nicht 43 bedeuten, dass man 0 hat oder 4 oder 6 oder was auch immer...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334573</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334573</guid><dc:creator><![CDATA[LinuxC_newbie]]></dc:creator><pubDate>Wed, 26 Jun 2013 16:11:45 GMT</pubDate></item><item><title><![CDATA[Reply to Valgrind on Wed, 26 Jun 2013 16:15:23 GMT]]></title><description><![CDATA[<p>LinuxC_newbie schrieb:</p>
<blockquote>
<p>Dann ist es eben Quark!</p>
<p>Ich kann auch nicht mehr als sagen: dass ich es nicht verstehe.</p>
<p>Wenn ich als Antwort Gegenfragen bekomme, die die gleiche Problematik behandeln, dann drehe ich mich notwendigerweisee im Kreis.</p>
</blockquote>
<p>Ich weiß aber nicht, wie ich es noch erklären soll. Ich weiß nicht, wie du auf den Quark gekommen bist, ich kann ihn dir daher nicht umerziehen. Bin kein Pädagoge.</p>
<p>Letzter Versuch:</p>
<blockquote>
<p>und stattdessen auch die Speicheradresse zugewiesen werden kann.</p>
</blockquote>
<p>Wie kommst du hier auf Speicheradressen? Wie sollten die in dem double landen? Was soll das dann sein?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334577</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334577</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Wed, 26 Jun 2013 16:15:23 GMT</pubDate></item><item><title><![CDATA[Reply to Valgrind on Wed, 26 Jun 2013 16:21:09 GMT]]></title><description><![CDATA[<p>Okay, dann eben nicht die Adresse, sondern die Zahl, die dort steht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334579</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334579</guid><dc:creator><![CDATA[LinuxC_newbie]]></dc:creator><pubDate>Wed, 26 Jun 2013 16:21:09 GMT</pubDate></item><item><title><![CDATA[Reply to Valgrind on Wed, 26 Jun 2013 16:54:03 GMT]]></title><description><![CDATA[<p>out schrieb:</p>
<blockquote>
<p><code>!alles_andere</code> ergibt <code>false</code> .</p>
</blockquote>
<p>liegt das daran, dass das ! die bits umdreht???</p>
<p>ist das ! ein bitweiser operator?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334588</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334588</guid><dc:creator><![CDATA[LinuxC_newbie]]></dc:creator><pubDate>Wed, 26 Jun 2013 16:54:03 GMT</pubDate></item></channel></rss>