What about Rust?
What is the difference between unsigned char and byte data types?
Let's see what Common Lisp has to say about it.
Just to add on some trivia. LISP Machines didn't actually support a byte datatype. Everything was done in words (eg. 36 bits on the 3600 or 40 bits on the Ivory). Thing like strings were done like arrays and multiple characters were packed into a single word.
What? Would you prefer the nonstandard u8 typedef?
The absolute state of this 'technology' board.
type Byte is mod 8;A: Byte := 7;beginA: A+1;Put_Line(A'Image);end;
= 0
One is burned the other bites.
nowadays practically speaking there's no difference, but on some exotic platform char might be more than one byte. Sizes of types in c/c++ like char short and int are platform specific. If you want guaranteed size you have to use uintx_t (where x is the number of bits) but these types might not be implemented on all platforms.
In other words, other than some piece of trivia, a char is a byte today.
no. in C char is one byte on all platforms. It isn't platform defined.
POSIX requires it to be eight bits. The C standard doesn't seem to put any requirements on it besides being an integer capable of containing the basic character set.