1万
7万
12万
管理员
struct my_struct { int x; int y; int *m; int *h; }; int main() { printf("offset %d\n", (int) &((((struct my_struct*)0)->h))); return 0; }
使用道具 举报
18
310
364
高级会员
85
805
1060
至尊会员
1
384
387
4
457
469
挖东衣宇 发表于 2023-6-29 23:57 硬汉哥估计是自己忘了 https://forum.anfulai.cn/forum.php?mod=viewthread&tid=93402&highlight=offset
360
2206
3291
版主
eric2013 2023-6-30 11:54 Щ
0
3
新手上路
2
11
17
unckway 发表于 2023-7-19 15:51 这是获取偏移位置?
本版积分规则 发表回复 回帖后跳转到最后一页
|小黑屋|Archiver|手机版|硬汉嵌入式论坛
GMT+8, 2026-2-26 10:44 , Processed in 0.047678 second(s), 24 queries .
Powered by Discuz! X3.4 Licensed
Copyright © 2001-2023, Tencent Cloud.