title: How to get two's complement of an int in C?
body: <p>How do you get the Two's complement for a int in C?</p>
  
  <p>Say for example I had an int such as -254, how would I go about converting this to 100000010?</p>
  
  <p>Is there any way to pull out the Two's complement value from the integer variable, as I know that in C, the ints are stored in Two's comp?</p>