Is a struct’s address the same as its first member’s address?
Is a struct’s address the same as its first member’s address? Yes, this is actually mandated by the C and C++ standards. From the C standard: 6.7.2.1-13. A pointer to a structure object, suitably converted, points to its initial member The size of your struct should be two bytes. You should not convert a pointer … Read more