C based
Word length
- Word length is one of the main technical indicators of CPU, which is the maximum number of binary digits that a CPU can process in parallel at a time.
- The current mainstream computer word length is 32 bits in 64 bits
Source code, inverse code, complement code
- To represent negative numbers, the highest bit is interpreted as a sign bit
- Positive numbers have the same source code, inverse code and complement code
- For negative numbers, we know the inverse of the original code, the sign bit is unchanged, and the other bits are reversed by bits
- For negative numbers, we know the complement of the original code, first find the inverse code, and then add 1 at the end of the inverse code
The data type
- character
- The integer
- floating-point
Structural type
- An array of
- The structure of the body
- The appropriate
- The enumeration