<?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[operatoren]]></title><description><![CDATA[<p>Hi,<br />
mir fällt gerade auf, dass ich folgendes nicht lösen kann...</p>
<p>7&amp;5</p>
<p>6|3</p>
<p>sowas in der Richtung... könnt ihr mir kurz schildern wie ich das lösen kann... wäre echt nett.<br />
Danke schonmal im Voraus.</p>
<p>sollte jemand noch etwas ähnliches wissen, bitte posten!<br />
Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/201669/operatoren</link><generator>RSS for Node</generator><lastBuildDate>Tue, 06 Oct 2026 03:21:40 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/201669.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 02 Jan 2008 18:48:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to operatoren on Wed, 02 Jan 2008 18:49:02 GMT]]></title><description><![CDATA[<p>Hi,<br />
mir fällt gerade auf, dass ich folgendes nicht lösen kann...</p>
<p>7&amp;5</p>
<p>6|3</p>
<p>sowas in der Richtung... könnt ihr mir kurz schildern wie ich das lösen kann... wäre echt nett.<br />
Danke schonmal im Voraus.</p>
<p>sollte jemand noch etwas ähnliches wissen, bitte posten!<br />
Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1429529</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1429529</guid><dc:creator><![CDATA[Xands]]></dc:creator><pubDate>Wed, 02 Jan 2008 18:49:02 GMT</pubDate></item><item><title><![CDATA[Reply to operatoren on Wed, 02 Jan 2008 19:41:17 GMT]]></title><description><![CDATA[<p>7&amp;5=5<br />
6|3=7</p>
<p>gelöst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1429556</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1429556</guid><dc:creator><![CDATA[Entenwickler]]></dc:creator><pubDate>Wed, 02 Jan 2008 19:41:17 GMT</pubDate></item><item><title><![CDATA[Reply to operatoren on Thu, 03 Jan 2008 12:06:33 GMT]]></title><description><![CDATA[<p>echt nett, aber wie ich oben schon erwähnt habe, möchte ich das ergebnis immernoch nicht wissen, sondern den lösungsweg!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1429856</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1429856</guid><dc:creator><![CDATA[Xands]]></dc:creator><pubDate>Thu, 03 Jan 2008 12:06:33 GMT</pubDate></item><item><title><![CDATA[Reply to operatoren on Thu, 03 Jan 2008 12:12:31 GMT]]></title><description><![CDATA[<p><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>7</mn><mo>=</mo><mn>0</mn><mn>1</mn><mn>1</mn><msub><mn>1</mn><mn>2</mn></msub></mrow><annotation encoding="application/x-tex">7 = 0111_2</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.79444em;vertical-align:-0.15em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">7</span><span class="mrel">=</span><span class="mord mathrm">0</span><span class="mord mathrm">1</span><span class="mord mathrm">1</span><span class="mord"><span class="mord mathrm">1</span><span class="vlist"><span style="top:0.15em;margin-right:0.05em;margin-left:0em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">​</span></span><span class="reset-textstyle scriptstyle cramped"><span class="mord mathrm">2</span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">​</span></span>​</span></span></span></span></span></span><br />
<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>5</mn><mo>=</mo><mn>0</mn><mn>1</mn><mn>0</mn><msub><mn>1</mn><mn>2</mn></msub></mrow><annotation encoding="application/x-tex">5 = 0101_2</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.79444em;vertical-align:-0.15em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">5</span><span class="mrel">=</span><span class="mord mathrm">0</span><span class="mord mathrm">1</span><span class="mord mathrm">0</span><span class="mord"><span class="mord mathrm">1</span><span class="vlist"><span style="top:0.15em;margin-right:0.05em;margin-left:0em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">​</span></span><span class="reset-textstyle scriptstyle cramped"><span class="mord mathrm">2</span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">​</span></span>​</span></span></span></span></span></span><br />
=&gt; Bitweises AND: Überall wo bei beiden Zahlen eine 1 steht kommt ins Ergebniss wieder eine 1, sonst eine 0<br />
<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>0</mn><mn>1</mn><mn>0</mn><msub><mn>1</mn><mn>2</mn></msub><mo>=</mo><mn>5</mn></mrow><annotation encoding="application/x-tex">0101_2 = 5</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.79444em;vertical-align:-0.15em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">0</span><span class="mord mathrm">1</span><span class="mord mathrm">0</span><span class="mord"><span class="mord mathrm">1</span><span class="vlist"><span style="top:0.15em;margin-right:0.05em;margin-left:0em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">​</span></span><span class="reset-textstyle scriptstyle cramped"><span class="mord mathrm">2</span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">​</span></span>​</span></span></span><span class="mrel">=</span><span class="mord mathrm">5</span></span></span></span></p>
<p><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>6</mn><mo>=</mo><mn>0</mn><mn>1</mn><mn>1</mn><msub><mn>0</mn><mn>2</mn></msub></mrow><annotation encoding="application/x-tex">6 = 0110_2</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.79444em;vertical-align:-0.15em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">6</span><span class="mrel">=</span><span class="mord mathrm">0</span><span class="mord mathrm">1</span><span class="mord mathrm">1</span><span class="mord"><span class="mord mathrm">0</span><span class="vlist"><span style="top:0.15em;margin-right:0.05em;margin-left:0em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">​</span></span><span class="reset-textstyle scriptstyle cramped"><span class="mord mathrm">2</span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">​</span></span>​</span></span></span></span></span></span><br />
<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>5</mn><mo>=</mo><mn>0</mn><mn>1</mn><mn>0</mn><msub><mn>1</mn><mn>2</mn></msub></mrow><annotation encoding="application/x-tex">5 = 0101_2</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.79444em;vertical-align:-0.15em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">5</span><span class="mrel">=</span><span class="mord mathrm">0</span><span class="mord mathrm">1</span><span class="mord mathrm">0</span><span class="mord"><span class="mord mathrm">1</span><span class="vlist"><span style="top:0.15em;margin-right:0.05em;margin-left:0em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">​</span></span><span class="reset-textstyle scriptstyle cramped"><span class="mord mathrm">2</span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">​</span></span>​</span></span></span></span></span></span><br />
=&gt; Bitweises OR: Überall wo bei mindestens einer der Zahlen eine 1 steht kommt ins Ergebniss wieder eine 1, sonst eine 0<br />
<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>0</mn><mn>1</mn><mn>1</mn><msub><mn>1</mn><mn>2</mn></msub><mo>=</mo><mn>7</mn></mrow><annotation encoding="application/x-tex">0111_2 = 7</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.79444em;vertical-align:-0.15em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">0</span><span class="mord mathrm">1</span><span class="mord mathrm">1</span><span class="mord"><span class="mord mathrm">1</span><span class="vlist"><span style="top:0.15em;margin-right:0.05em;margin-left:0em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">​</span></span><span class="reset-textstyle scriptstyle cramped"><span class="mord mathrm">2</span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">​</span></span>​</span></span></span><span class="mrel">=</span><span class="mord mathrm">7</span></span></span></span></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1429862</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1429862</guid><dc:creator><![CDATA[darthdespotism]]></dc:creator><pubDate>Thu, 03 Jan 2008 12:12:31 GMT</pubDate></item><item><title><![CDATA[Reply to operatoren on Thu, 03 Jan 2008 12:13:55 GMT]]></title><description><![CDATA[<p>Hierbei handelt es sich um binäre Operatoren (bitweise logisch).</p>
<p>&amp; := Binäres UND<br />
| := Binäres ODER</p>
<pre><code>7 &amp; 5:

     1011 = 7
 UND 1001 = 5
=============
     1001 = 5

6 | 3:

     1001 = 6
ODER 0011 = 3
=============
     1011 = 7
</code></pre>
<p>Das ist natürlich nur eine vereinfachte Darstellung. Du musst auf jeden Fall bei der Verwendung darauf achten, wie die entsprechende binäre Darstellung ausfällt (gerade bei negativen Zahlen oder Fließkommazahlen nicht unerheblich).</p>
<p>Grüße...</p>
<p>Heiko</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1429864</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1429864</guid><dc:creator><![CDATA[bwbg]]></dc:creator><pubDate>Thu, 03 Jan 2008 12:13:55 GMT</pubDate></item><item><title><![CDATA[Reply to operatoren on Thu, 03 Jan 2008 12:18:07 GMT]]></title><description><![CDATA[<p>alles klar! genau so etwas hab ich mir vorgestellt: kurz, einfach und verständlich<br />
<a href="http://www.c-plusplus.net/forum/images/smiles/live.gif" rel="nofollow">http://www.c-plusplus.net/forum/images/smiles/live.gif</a></p>
<p>vielen Dank!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1429871</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1429871</guid><dc:creator><![CDATA[Xands]]></dc:creator><pubDate>Thu, 03 Jan 2008 12:18:07 GMT</pubDate></item></channel></rss>