In article <b24bc768-cec5-4c04-a329-c09576cda9a0
@h21g2000yqa.googlegroups.com>,
says...
>
> just wondering, in its format, why it has signed and unsigned decimal
> integer, signed octal, unsigned hexdecimal. ("%d", "%u", "%o", "%x")
> but does not have unsigned octal and signed hexdecimal?
You've gotten things a bit wrong: it has signed and unsigned decimal.
Octal and hexadecimal are both (always) unsigned. The why seems to be
pretty simple: hex and octal are mostly used as compact
representations of bits, where sign is rarely desired.
--
Later,
Jerry.