摘要: 我们在C语言中,经常使用offsetof函数来看结构体的偏移量。 例如: #include<iostream> #include<stdio.h> struct Test{ char c; int data; }; int main(){ printf("%d",offsetof(Test,data 阅读全文
posted @ 2022-02-26 19:04 计算机知识杂谈 阅读(379) 评论(0) 推荐(0) 编辑