Using Reference in c++
<p>I am using a global instance of a class like Class A; A a1; Now I am using this global variable in other functions using reference as A&amp; a2 = a1; such that all changes done locally are reflected globally. I just wanted to check whether destructor for a2 will be called as soon its local scope ends?</p>

<p>Please clarify.</p>
