understand the pointer pointer in c++ to get the function call : <p>I am little confused about the pointer statement in the following code.
The purpose of the pointer is to access the virtual function from virtual table.here is link of the article.
<a href="http://kaisar-haque.blogspot.com/2008/07/c-accessing-virtual-table.html" rel="nofollow noreferrer">http://kaisar-haque.blogspot.com/2008/07/c-accessing-virtual-table.html</a></p>

<pre><code>1 #include &lt;iostream&gt;
  2
  3 using namespace std;
  4
  5 //a simple class
  6 class X
  7 {
  8 public:
  9  //fn is a simple virtual function
 10  virtual void fn()
 11  {
 12   cout &lt;&lt; "n = " &lt;&lt; n &lt;&lt; endl;
 13  }
 14
 15  //a member variable
 16  int n;
 17 };
 18
 19 int main()
 20 {
 21  //create an object (obj) of class X
 22  X *obj = new X();
 23  obj-&gt;n = 10;
 24
 25  //get the virtual table pointer of object obj
 26  int* vptr =  *(int**)obj;
 27
 28  // we shall call the function fn, but first the following assembly code
 29  //  is required to make obj as 'this' pointer as we shall call
 30  //  function fn() directly from the virtual table
 31  __asm
 32  {
 33   mov ecx, obj
 34  }
 35
 36  //function fn is the first entry of the virtual table, so it's vptr[0]
 37  ( (void (*)()) vptr[0] )();
 38
 39  //the above is the same as the following
 40  //obj-&gt;fn();
 41
 42  return 0;
 43 }
 44 
</code></pre>

<p>so, i want to know the how to understand the line number 26.</p>
