J
junky_fellow
Guys,
I want to find out an offset of a member inside a structure.
Although, there is a macro (offsetof) available to do this. Still, I
have one question. Can I subtract the address of the member from the
address of structure to get the offset ? If not, what are the reasons
for not doing this subtraction ?
Thanks for any help ...
I want to find out an offset of a member inside a structure.
Although, there is a macro (offsetof) available to do this. Still, I
have one question. Can I subtract the address of the member from the
address of structure to get the offset ? If not, what are the reasons
for not doing this subtraction ?
Thanks for any help ...