Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - The relationship between bit and Bool! ! !
The relationship between bit and Bool! ! !
1 and Bool represent a data type.

2. Bit represents the smallest unit of storage space.

For example, there is a 5,000-square-meter (bit) house, but it may be a commercial and residential building (Word), a residential building (Dword), a warehouse (Int) or even a factory (Bool).

Another example is that the monthly salary is 5,000 yuan (bit), but the currency may be RMB (Bool), US dollar (Word) or even Euro (dint). ...

So bits only represent the smallest unit of storage space.

The memory space consisting of 16 bits can be an unsigned integer (Word) or an integer (int). Similarly, a 32-bit memory space may be a long integer (Dint), a double font (Dword) or even a floating point (Real). Therefore, it is important to understand the difference between storage space and data types stored in storage space.