Would you like signs with those chars?
Would you like signs with those chars?
Posted Oct 24, 2022 22:13 UTC (Mon) by Sesse (subscriber, #53779)In reply to: Would you like signs with those chars? by NYKevin
Parent article: Would you like signs with those chars?
It's fairly common to use these types to save memory. Just to take a random example from work: A counting Bloom filter will almost never need to count higher than 255, so why waste four times the memory (and cache space)?
I do wish C had made a separate “byte” type, though, for aliasing reasons. char has too many tasks.
