Thread
:
Offset of a data member
View Single Post
asadullah.ansari
TechCake
8May2008,18:54
(size_t)&(((s *)0)->m)
(s*)(0) = 0 is integer which is cast to s pointer
((s*)(0))->m = Data member access
&(((s*)(0))->m) = Address of data member m
(size_t)&(((s*)(0))->m) = cast to standard integer(unsigned)