J
junky_fellow
I am trying to print the offset of a particulat member in
a structure, but it's not working. I am using the following
expression to print the offset.
&(struct my_struct *)0->member_name
What's wrong with this ?
If I use,
&((struct my_struct *)0)->member_name, it works. But it seems
to be wrong. It looks as if I am trying to print the address of
structure itself instead of the member.
Thanx in advance for any help ....
a structure, but it's not working. I am using the following
expression to print the offset.
&(struct my_struct *)0->member_name
What's wrong with this ?
If I use,
&((struct my_struct *)0)->member_name, it works. But it seems
to be wrong. It looks as if I am trying to print the address of
structure itself instead of the member.
Thanx in advance for any help ....