title: Converting 16-bit integer to 8-bit integer?
body: <p>I'm implementing C code to copy a 16-bit sign and magnitude integer to an 8-bit sign and magnitude integer. Is that even possible? Could someone please explain how to do this?</p>
  
  <p>code snippet:</p>
  
  <pre><code>int16_t a = 0x1234;
  int8_t b, c;
  </code></pre>
  
  <p>How to copy first two digits to variable b and next two digits to variable c?</p>