1万
7万
11万
管理员
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
309
363
高级会员
85
798
1053
至尊会员
1
382
385
4
412
424
挖东衣宇 发表于 2023-6-29 23:57 硬汉哥估计是自己忘了 https://forum.anfulai.cn/forum.php?mod=viewthread&tid=93402&highlight=offset
356
2180
3253
版主
eric2013 2023-6-30 11:54 Щ
0
3
新手上路
2
11
17
unckway 发表于 2023-7-19 15:51 这是获取偏移位置?
本版积分规则 发表回复 回帖后跳转到最后一页
|小黑屋|Archiver|手机版|硬汉嵌入式论坛
GMT+8, 2025-8-12 04:25 , Processed in 0.043895 second(s), 24 queries .
Powered by Discuz! X3.4 Licensed
Copyright © 2001-2023, Tencent Cloud.