C++ NOT outputing... +1 negative
<p>How do i make program which outputs NOT(x)?</p>

<p>Example:</p>

<ul>
<li>12 to 3</li>
<li>0 to 1</li>
<li>2 to 1</li>
</ul>

<p>explained:</p>

<ul>
<li>1100 to 0011</li>
<li>0 to 1</li>
<li><p>01 to 10</p>

<p><code>printf("%i\n%i\n%i\n", ~12, ~0, ~2);</code></p></li>
</ul>

<p>Prints:</p>

<pre><code>-13
-1
-3

printf("%i\n%i\n%i\n", !12, !0, !2);
</code></pre>

<p>Prints:</p>

<pre><code>0
1
0
</code></pre>
