 <p>50 decimal is 32 hexadecimal.</p> <p>Apart from that, the <a href="http://www.cplusplus.com/reference/clibrary/cstdio/printf/" rel="nofollow">documentation</a> should tell you all you need to know.</p>