Vaibhav <vaibhav.pa
@gmail.com> wrote in message...
> In the first step, you are creating a local object whereas in the
> second step (assuming you have missded A*) you are creating object
> pointer.
> The local object will be destroyed as soon as you get out of function
> where A a(1) is defined whereas the pointer will linger until you call
> delete A.
> Hope this makes it clear.
Makes WHAT clear?