title: Weird output for bitwise NOT
body: <p>I am trying to take one's complement of 0 to get 1 but I get 4294967295. Here is what I have done:  </p>
  
  <pre><code> unsigned int x = 0;
   unsigned int y= ~x;
   cout &lt;&lt; y;
  </code></pre>
  
  <p>My output is 4294967295 but I expect 1, why is this so? By the way, I am doing this in C++.</p>