面试宝典-预处理、const与sizeof

T1.用一个宏定义FIND求一个结构体struc里某个变量相对struc的偏移量。 { int a; char b[20]; double ccc; } 则 : FIND(student,a); //等于0 FIND(student,b); //等于4web #define FIND(struc,e) (size_t)&(((struc*)0)->e)svg 其中(stru
相关文章
相关标签/搜索