<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Bitwise operation - Page 10 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Bitwise_operation&amp;p=9">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Bitwise_operation&amp;p=11">3.Next</a>
</p>

<p>     011<b>0</b> (decimal 6) AND 000<b>1</b> (decimal 1)   = 000<b>0</b> (decimal 0)</p>

<p>Because 6 AND 1 is zero, 6 is divisible by two and therefore even.</p>

<p><big>OR</big></p>
<p>A <b>bitwise OR</b> is a <a href="page.php?w=binary_operation">binary operation</a> that takes two bit patterns of equal length and performs the <a href="page.php?w=Logical_disjunction">logical inclusive OR</a> operation on each pair of corresponding bits. The result in each position is 0 if both bits are 0, while otherwise the result is 1. For example:</p>

<p>    0<b>101</b></p><p>
<a accesskey="1" href="page.php?w=Bitwise_operation&amp;p=9">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Bitwise_operation&amp;p=11">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
