title: Implicit typecasting in C (Converting 32 bit unsigned in to 8 bit u int)
body: <p>My question looks a lot like</p>
  
  <p><a href="https://stackoverflow.com/questions/2810280/how-to-store-a-64-bit-integer-in-2-32-bit-integers-and-convert-back-again">How to store a 64 bit integer in two 32 bit integers and convert back again</a></p>
  
  <p>(I have an unsigned 32 bit I need to put into 4 unsigned 8-bit variables in C)</p>
  
  <p>but</p>
  
  <p>My question is whether this:</p>
  
  <pre><code>uint8_t a;
  uint32_t b;
  a = b;
  </code></pre>
  
  <p>guarantees that a is filled with the eight rightmost bits, rather than the eight leftmost bits?</p>