title: How can I convert an integer to a hexadecimal string in C?
body: <p>How can I convert an integer to a hexadecimal string in C?</p>
  
  <p>Example: The integer <code>50</code> would be converted to the hexadecimal string <code>"32"</code> or <code>"0x32"</code>.</p>