How can I get the address of initializer?
<p>The code below introduces a class C. The class has constructor, copy constructor, operator= and one member. How can I get the address of the object created by C(2) in the function main()?</p>

<pre><code>#include &lt;iostream&gt;

class C
{
public:
    int a;

    C(const C &amp;other)
    {   
        std::cout &lt;&lt; "Copy Constructor:" &lt;&lt; a &lt;&lt; std::endl;
    }   

    C(int a)
    {   
        this-&gt;a = a;
        std::cout &lt;&lt; "Constructor:" &lt;&lt; a &lt;&lt; std::endl;
    }   

    C &amp;operator=(const C &amp;other)
    {   
        std::cout &lt;&lt; "operator=:this.a = " &lt;&lt; a &lt;&lt; " | other.a = " &lt;&lt; other.a &lt;&lt; std::endl;
        a = other.a;
        return *this;
    }   

    ~C()
    {   
        std::cout &lt;&lt; "Destructor:" &lt;&lt; a &lt;&lt; std::endl;
    }   
};

    int main()
    {
        C a(1);

        a = C(2);
    }
</code></pre>
