// example
mascara = 0xFF;
blue = COR1 & mascara // color a macro I've used
printf ("% s \ n", blue); // bold doubts
// example
mascara = 0xFF;
blue = COR1 & mascara // color a macro I've used
printf ("% s \ n", blue); // bold doubts
To print a HEX in C we have the options:
%i
Prints the corresponding integer value. %x
Prints the normal HEX value You can also specify how many houses you want to print using% 4x for 4 houses for example or% 04x to complete the numbers on the left with zeros.
See the ideone .