title: How to combine two 32-bit integers into one 64-bit integer?
body: <p>I have a count register, which is made up of two 32-bit unsigned integers, one for the higher 32 bits of the value (most significant word), and other for the lower 32 bits of the value (least significant word).</p>
  
  <p>What is the best way in C to combine these two 32-bit unsigned integers and then display as a large number?</p>
  
  <p>In specific:</p>
  
  <pre><code>leastSignificantWord = 4294967295; //2^32-1
  
  printf("Counter: %u%u", mostSignificantWord,leastSignificantWord);
  </code></pre>
  
  <p>This would print fine.</p>
  
  <p>When the number is incremented to 4294967296, I have it so the leastSignificantWord wipes to 0, and mostSignificantWord (0 initially) is now 1.  The whole counter should now read 4294967296, but right now it just reads 10, because I'm just concatenating 1 from mostSignificantWord and 0 from leastSignificantWord. </p>
  
  <p>How should I make it display 4294967296 instead of 10?</p>