Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. this1kid

    to print 1101 instead of 13 (bits)

    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.
  2. this1kid

    to print 1101 instead of 13 (bits)

    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...

Part and Inventory Search

Back
Top