title: Printing a maximum hex precision in C
body: <p>Is there any way of printing a maximum hex precision in C?</p>
  
  <p>For example: </p>
  
  <pre><code>printf(" %x ", var);
  </code></pre>
  
  <p>gives the output as - "FFFFAB"</p>
  
  <p>However, I just want the output as "AB" i.e the least 2 significant digits. Is there any way to do so?</p>