struct struc {
int a;
char b[20];
double c;
};
#define FIND(struc,e) (size_t)&(((struc*)0)->e)
FIND(struc, a) 返回0
FIND(struc, b) 返回4
FIND(struc, c) 返回24
struct struc {
int a;
char b[20];
double c;
};
#define FIND(struc,e) (size_t)&(((struc*)0)->e)
FIND(struc, a) 返回0
FIND(struc, b) 返回4
FIND(struc, c) 返回24