title: unable to make out how ~ operator works in c
body: <p>I have this piece of code can you explain me the output</p>
  
  <pre><code>unsigned int x=3;
  ~x;
  printf("%d",x);
  </code></pre>
  
  <p>output is 10
  I am not able to make it how.</p>
  
  <p>I have compiled the code on turbo c</p>