What will happen if when say delete this ?

Answer Posted / dee

delete "this" lead in calling the destructor twice.
"this" poanter is related to object and the destructor is
called when the object goes out of scope.

Is This Answer Correct ?    2 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the effects after calling the delete this operator ?

547


What are the data types in c++?

511


What is new in c++?

568


Explain what data encapsulation is in c++?

566


Can member functions be private?

589






What parameter does the constructor to an ofstream object take?

604


Explain differences between new() and delete()?

611


Difference between overloading vs. Overriding

584


What is the identity function in c++? How is it useful?

543


What are stacks?

605


Explain how to initialize a const member data.

592


Is c# written in c++?

511


What is pointer to array in c++?

608


What is class syntax c++?

585


Why do we use double in c++?

587