5 bytes? What about 5 characters?
When I started almost four decades ago it was then true that bytes and characters were the same thing.
When I started almost four decades ago it was then true that bytes and characters were the same thing.
Never smaller as the minimum limits for char require at least 8 bits. But definitely can be wider than 8 bits, as is common on DSPs or some old mainframes. Though, even on systems that don't permit direct addressing of 8-bit char, C implementations will sometimes emulate it.
FWIW, POSIX mandates a fixed, 8-bit char.
Not entirely, there is a vague description of what a byte should be able to represent.
The C and C++ programming languages define byte as an "addressable unit of data storage large enough to hold any member of the basic character set of the execution environment"