Doubt in Vptr -want to know how it is getting Vtable address
<p>i wanted to know how vptr getting vtable base address.</p>

<p>for instance </p>

<pre><code>class A
{
virtual getdata();
int a;
}
</code></pre>

<p>now,</p>

<pre><code>A obj; /// here vptr getting vtable's base address.
</code></pre>

<p>i wanted to know this mystery..
Thanks in advance </p>
