This is because on most operating systems, a char maps well to one byte.
这是因为在大多数操作系统上,一个字符能很好地映射成一个字节。
CHAR Stores single-byte or multibyte text strings of fixed length (up to 32,767 bytes); supports code-set order in collation of text data.
CHAR存储固定长度的单字节或多字节的文本字符串(最高可达32,767个字节);在整理文本数据时支持使用代码集顺序。
So a char is one byte, which is bits — how many?
所以char类型占了1个字节,——那是多少位?
This is convention, so on almost-- and most any computer you overuse, if you're writing code that uses a char, you're gonna be handed 8 bits or 1 byte to store that particular char.
这是约定,对于大多数-,电脑,当你写代码要用到一个char型数据时,必须先预留8比特或1字节,的空间来存储这个char型数据。
So a char is one byte, which is bits -- how many?
所以char类型占了1个字节,--那是多少位?
So a char size is 1 byte or 8 bits.
一个char型数据占据1字节或8比特。
应用推荐