Wednesday, 11 September 2013

Finding offset of a structure element in c

Finding offset of a structure element in c

struct a
{
struct b
{
int i;
float j;
}x;
struct c
{
int k;
float l;
}y;
}z;
Can anybody explain me how to find the offset of int k..so that we can
find the address of int i ????

No comments:

Post a Comment