The register can hold the address of the whole struct, and the numeric portion can be modified depending on the structure member to be accessed.
寄存器可以存放整个结构的地址,数字部分可以根据所访问的结构成员进行修改。
This structure has the useful property that if you allocate space for (sizeof(struct header) + 10) bytes, you can treat data as being an array of 10 bytes.
这种结构体的有用之处在于,如果您分配 (sizeof(struct header) + 10) 字节的空间,您可以像处理一个 10 字节的数组一样来处理数据。
The struct keyword provides a way to collect a group of variables together into a structure.
struct 关键字提供了将一组变量集中到一个结构的方法。
应用推荐