X: Unsigned integer in hexadecimal form, and the hexadecimal characters A, B, C, D, E, and F printed in uppercase. : printf hexadecimal « printf scanf « C Tutorial






#include <stdio.h>
main()
{
    int i = 100;
    printf(" %X\n",i);
}
64








4.5.printf hexadecimal
4.5.1.x:Unsigned integers in hexadecimal form, and the hexadecimal characters a, b, c, d, e, and f printed in lowercase.
4.5.2.X: Unsigned integer in hexadecimal form, and the hexadecimal characters A, B, C, D, E, and F printed in uppercase.