Click to See Complete Forum and Search --> : Hex Values in C


Nevermore84
10-03-2004, 05:59 PM
does anyone know how to use hex values for ints in C? i have some int values that i need to print as hex characters, how might i do this? thanks for any help.

EverlastingGod
10-04-2004, 01:33 AM
int i = 0xABCDEF01;

printf("%x", i);