Pawel Hallo group members. //p1.cpp #include #include struct Person { int m_age; char* m_name; }; struct Child: public Person { unsigned short m_school_year; }; int main() { printf ("offset to m_name: %d\n", offsetof(Child, m_name)); printf ("offset to m_length: %d\n", offsetof(Child, m_school_year)); } As You know the program above compiles with a warning: prompt$ g++ -g -O0 -o /tmp/p1 p1.cpp ...