title: printf formatting (%d versus %u)
body: <p>What is difference between <code>%d</code> and <code>%u</code> when printing pointer addresses?</p>
  
  <p>For example:</p>
  
  <pre><code>int a = 5;
  // check the memory address
  printf("memory address = %d\n", &amp;a); // prints "memory address = -12"
  printf("memory address = %u\n", &amp;a); // prints "memory address = 65456"
  </code></pre>