Operator "&&" cannot be applied to operands of type 'int' and 'int'
<p>I dont know what is the different these two code. Above only have single <code>&amp;</code> while below have <code>&amp;&amp;</code>. I have an error for the above code. I dont how to solve it. </p>

<pre><code>Cmd3[8] = (byte)(Length &amp; 0xFF);
Cmd3[9] = (byte)(((Length &gt;&gt; 8) &amp;&amp; 0xFF) ? -1 : 0);
</code></pre>

<p>Hope you guys can help me.</p>