1, with English and numbers accounting for one byte;
2. Chinese occupies one character, that is, two bytes;
3. Characters are not equal to bytes.
Char is a basic data type in Java, consisting of 2 bytes ranging from 0 to 2 16- 1.
A byte is a data unit, and a byte is equal to 8 bits. The space occupied by all data can be measured in bytes. For example, a character occupies 2 bytes, an int occupies 4 bytes, a double occupies 8 bytes, and so on.
1 character =2 bytes;
1byte=8bit 1k=2^ 10; b:bit; B: bytes 1kb= 1024 bits 1kB= 1024 bytes.
Byte Byte type is stored in one byte, which can distinguish 256 numbers, with values ranging from 0 to 255. Byte is an unsigned type from 0 to 255, so it cannot represent negative numbers. For more information, refer to data types.
Extended data:
Bytes refer to a small group of adjacent binary numbers. Usually 8 bits are used as a byte. It is a small unit that constitutes information and participates in the operation as a whole. It is smaller than a word and is the unit that constitutes a word.
In a microcomputer, how many bytes are usually used to represent the storage capacity of a memory.
For example, the data type of C++ indicates that char is usually 1 byte, int is 4 bytes, and double is 8 bytes.
In all-angle input mode, punctuation marks account for 2 bytes;
In half-angle input mode, punctuation marks account for 1 byte;
Therefore, the characters in the Chinese character input state account for 2 bytes (but it is not excluded that the default settings have been changed);
The characters in English input status account for 1 byte (but it does not rule out that I changed the default setting myself).
Alphabetic characters can be traced back to Phoenician letters, such as Hebrew letters, Arabic letters, Greek letters, Latin letters, Sanskrit letters, Manchu letters and so on. Phoenician letters can be said to be the origin of pinyin, and also the origin of many writing systems except Chinese and similar languages (such as proverbs and pseudonyms).
At first, each letter in the Latin alphabet was an abstract symbol, depicting the shape of an animal or an object. Unlike Chinese characters, these symbols bear little resemblance to the shapes of objects originally described. No one is sure what these hieroglyphs originally represented. Our explanation can only be an informed guess made by scholars based on historical materials.
References:
Baidu encyclopedia-bytes