ProAnswers.org

How to print hex numbers in C?

printf("%x", number);

small case x will print number in small case and capital X will print number in capital.