title: address of this
body: <p>I try to find address of <code>this</code> pointer, but this code is showing a strange
  error:</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  class Base
  {
      public:
          void test()
          {
              void *address_of_this =&amp;this;
              cout&lt;&lt;address_of_this&lt;&lt;endl;
          }
  };
  
  int main()
  {   Base k;
      k.test();
  
      return 0;
  }   //error non-lvalue in unary'&amp;'   
  </code></pre>
  
  <p>Can you explain this error ?<br>
  Also point that what is illegal in taking address of <code>this</code>?  </p>