title: Bitwise Concatenation
body: <p>I have the following:</p>
  
  <pre><code>char *pointer = decimal_to_binary(192) // yields 11000000
  char *pointer2 = decimal_to_binary(168) // yields 10101000
  </code></pre>
  
  <p>I am trying to concat them into:</p>
  
  <pre><code>1100000010101000
  </code></pre>
  
  <p>I was referencing: <a href="https://stackoverflow.com/questions/13222374/concatenate-binary-numbers-of-different-lengths">Concatenate binary numbers of different lengths</a> and am currently using: </p>
  
  <pre><code>unsigned long pointer3 = (*pointer &lt;&lt; 16) | *pointer2;
  </code></pre>
  
  <p>which gives the output:</p>
  
  <pre><code>1100010000000000110001
  </code></pre>
  
  <p>What am I doing wrong?</p>