Article Directory
-
- Everything is an address
- Complex type description
- Elaborate pointers
-
- 1. Types of pointers
- 2. The type pointed to by the pointer
- 3. The value of the pointer or the memory area or address pointed to by the pointer
- 4. The memory area occupied by the pointer itself
- 5. Pointer arithmetic operations
- 6. Operator & and *
- 7. Pointer expressions
- 8. The relationship between arrays and pointers
- 9. The relationship between pointers and structure types
- 10. The relationship between pointers and functions
- 11. Pointer type conversion
- 12. The safety of pointers
- 13. Conclusion
All data in the computer must be placed in memory, and different types of data occupy different bytes. For example, int occupies 4 bytes, and char occupies 1 byte. In order to access these data correctly, each byte must be numbered, just like the house number and ID number, the number of each byte is unique, and a certain byte can be accurately found according to the number.
The figure below is the number of each byte in the 4G memory (expressed in hexadecimal) ÿ