Ok.. I got the part about the hex format.. ironically, from the book I mentioned in my first article:
%x : hexadecimal int, w/ or w/o leading 0x or 0X; requires int *
I'm still befuddled about how to output ints in binary form and the meaning of ~077, though.
Hi,
Does C has built-in functions to output an integer in binary form and hex form?
On a side-note, I found this statement in "The C Progging Lang" by Brian W. Kernighan and Dennis M. Ritchie:
x = x & ~077;
Apparently, it sets the last six bits of x to zero... but I'm kinda...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.