gpt4 book ai didi

c - 结构内成员变量的偏移量

转载 作者:太空宇宙 更新时间:2023-11-04 06:39:10 25 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
offsetof at compile time

如何在 C 中找到结构中成员的偏移量?例如,如何在这个结构中找到 t 的偏移量:

struct test
{
int a;
int b;
struct test* t;
int c;
};

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com