TITLE: Sizeof and references PROBLEM: nikki@trmphrst.demon.co.uk However, I would be extremely surprised at an implementation where the size of an object is LESS than the sum of the sizeof's its members. RESPONSE: jimad@microsoft.com (Jim Adcock), 28 Jun 93 SURPRISE! #include typedef int I100[100]; class A { int a; double b; I100& c; public: A(I100* i100) : c(*i100) {} int size() { return sizeof(*this); } int sumsize() { return sizeof(a) + sizeof(b) + sizeof(c); } }; main() { I100 i100; A a(&i100); cout << a.size() << ' ' << a.sumsize() << '\n'; return 0; } [ Using ObjectCenter 1.0, the results are 24 and 412. -adc ]