Possible Duplicate:
Why does this C code work?
I do see a macro defined to compute the structure offset as follows
#define offsetof(st, m) ((size_t)(&((st *)0)->m))
But I don't get on how this definition works. It looks like a member of structure is accessed via a NULL
pointer. Can any one please elaborate how this expression works?