title: Calculating and using maximum value of uint32_t
body: <p>I know that <code>UINT32_MAX</code> exists, but I haven't been able to use it. I tried <code>printf("%d\n", UINT32_MAX);</code> and it printed out <code>-1</code>. Using <code>%ld</code> instead of <code>%d</code> presented me with the error that <code>UINT32_MAX</code> is of the type unsigned int and needs <code>%d</code> to print it out.</p>
  
  <p>Please help, what I ideally want is a macro/enum that holds the maximum value of <code>word_t</code> which is a type defined by me which currently is <code>uint32_t</code>.</p>
  
  <p>I hope that I made clear what I want, if not please feel free to ask.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I forgot to say what I'm actually trying to do. All of this will be used to set an array of integers all to their maximum value, because that array of integers actually is a bitmap that will set all bits to 1.</p>