Hacker News new | ask | show | jobs
by berti 2239 days ago
> Some people think that in C, the integer literal 0xff is more "byte-like" than 255

When I'm doing bitwise arithmetic, or poking hardware registers, I think in hex. 0xff/255 isn't a good example because that's easy offhand but a lot of other values take longer to "parse" in base 10. It depends on the context whether base 10 or 16 literals are easier to read and parse for humans.