[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Technical Discussion :: C++

8. Explain overloading the delete operator.



void operator delete(void *p)
/*free memory pointed to by p. the destructor is called automatically.*/

The delete function receives a pointer to the region of memory to be freed. It then releases the previously allocated memory back to the system. When an object is deleted, its destructor is automatically called.

Asked In :: TCS Societe Generale

Post Your Answer Here:

Name *
Alert me

Post Your Reply Here:

Report Error

Please Login First Click Here