title: Adding one to binary number in C?
body: <p>I have a 9  bit binary string say "111110000" how would I go about adding 1 to this binary number. </p>
  
  <p>I DO NOT mean concatenation (ie after adding 1 the string should be "111110001"). </p>
  
  <p>This should work for any 9 bit binary string. </p>
  
  <p>This code is part of a 2's compliment converter. </p>
  
  <p>I have been at this for quite a while and am completely lost. any help would be appreciated.</p>