0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">1</span>, <span class="hljs-number">0</span>))
</code></pre>
<pre><code>1
1
0
1
</code></pre><h3 id="xor">XOR</h3>
<p>Xor (e<strong>x</strong>clusive <strong>or</strong>), returns 1 only when it gets one 1.
Let&apos;s compare XOR in a table to the others:</p>
<p><strong>AND</strong></p>
<table>
<thead>
<tr>
<th>input A</th>
<th>input B</th>
<th>output</th>
</tr>
</thead>
<tbody>
<tr>
<td>0</td>
<td>0<