0
//example
mascara=0xFF;
blue= COR1 & mascara;//color a macro I used
printf("%s\n", blue);//doubt bold
0
//example
mascara=0xFF;
blue= COR1 & mascara;//color a macro I used
printf("%s\n", blue);//doubt bold
1
To print a HEX in C we have the options:
%i
Prints the corresponding integer value.%x
Prints normal HEX valueYou can also specify how many boxes either in print using %4x for 4 houses for example or %04x to complete the numbers on the left with zeros.
See on ideone.
Browser other questions tagged c hexadecimal printf
You are not signed in. Login or sign up in order to post.
Use the editor’s '{}' to format your code. This makes it more organized.
– Gustavo Fragoso