2021-1-18

Today, the main learned bit segment
declarations and the declarations bit segment structure roughly the same, there are major differences in 2:00.
1. The member variable of the bit segment is followed by a colon and a number, and the number represents the number of bits required by the member variable.
2. Bit segment member variables can only be int unsigned int (char). The
bit segment size is mainly determined by the bit behind the member variable. When applying for the byte size, it is determined according to the type of the member variable. Int is 4 characters. Section, char is one byte.

Guess you like

Origin blog.51cto.com/15085121/2596025