Why is bitwise compliment of 1 in -2
<p>I am trying some bitwise operators in C#, not sure how compliment calculates output as -2 for 1</p>

<p>If i represent 1 in 8 bit binary</p>

<p>1 = 00000001</p>

<p>~1 =11111110 = How come this evaluates to be -2?</p>

<pre><code>    Sample code that i am using in C#


    //Bitwise Compliment
    //1  = 00000001
    //~1 = 11111110 = -2
    Console.WriteLine(~1);
</code></pre>
