ptrconv1.cpp 146 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 class A { int a; }; class B { int b; }; class C : public A, public B { int c; }; int main() { C c; A* aptr = &c; B* bptr = &c; }