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 puzzled about the "077" since it doesn't seem like it's a hexadecimal number. Can someone explain that please?
Thanks!
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 puzzled about the "077" since it doesn't seem like it's a hexadecimal number. Can someone explain that please?
Thanks!