Memory addresses of Derived and Base Class Objects?
<p>I am trying to find out the addresses of Derived class and Base Class Object's and I find them same .
Actually , I am confused how to get address of both ?</p>

<pre><code>#include&lt;stdio.h&gt;
class Base {
    public:
        Base ()
        {
            printf ("\n Base :: %p\n", this);
        }
        ~Base () { 
            printf ("\n Base::~Base\n");
        }
};

class Der:public Base {
    public:
        Der () {
            printf ("\n Der: %p \n", this);
        }
        ~Der () {
            printf ("\n Der:: ~Der\n");
        }
};

int main(void) {
    Base b;
    Der d;
    return 0;
}
</code></pre>
