It's not a document or a tutorial. It's just supervising myself to learn C language by clocking in and recording only some small notes. If there is any mistake, thank you very much for pointing it out! ! !
1. Structure
- The memory alignment of the structure is based on the data type in the structure
- #pragma packZ(), you can set the alignment
- c11 supports _Alignas(), _Alignof (structure. Variable name)
- Use (#include<stddef.h>), offsetof (structure, variable name) in msvc
2. Consortium
- Same as structure, but will share
I learned very little today, just criticize