title: How can I set the least significant bit of an integer in C
body: <p>How can I set the least significant bit of an integer in C.
  For example, I have a 4 data with the following bits</p>
  
  <pre><code>[0] Decimal: 131    Binary: 10000011
  [1] Decimal: 11     Binary: 00001011
  [2] Decimal: 115    Binary: 01110011
  [3] Decimal: 236    Binary: 11101100
  [4] Decimal: 245    Binary: 11110101
  [5] Decimal: 75     Binary: 01001011
  [6] Decimal: 74     Binary: 01001010
  [7] Decimal: 116    Binary: 01110100
  </code></pre>
  
  <p>and I have to change all those four data to be updated with 12 (integer) or 0000 1010 in bits.</p>
  
  <p>So the new updated list would be:</p>
  
  <pre><code>[0] Decimal: 130    Binary: 10000010
  [1] Decimal: 11     Binary: 00001011
  [2] Decimal: 114    Binary: 01110010
  [3] Decimal: 237    Binary: 11101101
  [4] Decimal: 244    Binary: 11110100
  [5] Decimal: 74     Binary: 01001010
  [6] Decimal: 74     Binary: 01001010
  [7] Decimal: 116    Binary: 01110100
  </code></pre>