title: Bitwise Operators on a binary representation in C
body: <p>I have a binary representation of a number as a char array which is at most 18 bits long. I need to store the three bits on the right, and the remaining bits into two different strings using bitwise operators.</p>
  
  <p>For example, I have a char array containing "00000000011101". I need a function that will store "101" (the last three bits) and store "00000000011" (the remaining bits).</p>
  
  <p>However, this must be done using bitwise operators. So I understand that I need to convert the strings to int, and then shift but I'm not sure how to go about this.</p>
  
  <p>Your help would be very much appreciated.</p>