Explain about Garbage Collector?



Explain about Garbage Collector?..

Answer / Vinod Kumar Duvedi

A garbage collector is a program that automatically frees up memory by reclaiming memory space occupied by objects that are no longer in use. In C++, memory management is not handled automatically like in some other programming languages such as Java and Python, but you can use smart pointers or manually delete objects to help manage memory.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is input operator in c++?

1 Answers  


What are the debugging methods you use when came across a problem?

1 Answers  


What is the basic difference between C and C++?

1 Answers   NIIT,


Define whitespace in C++.

1 Answers   HCL,


What is problem with overriding functions?

1 Answers  


What are virtual functions in c++?

1 Answers  


What is the use of the this pointer?

3 Answers  


What do you mean by C++ access specifiers ?

1 Answers  


How can you link a c++ program to c functions?

1 Answers  


Design a program to input a date from user in the form day/month/year (e.g. 2/6/2000) and report whether it’s a valid date or not. The program should take account of leap years. You will need to know that a leap year is a year that is exactly divisible by 4, except that century years are only leap years if they are divisible by 400.

1 Answers  


when can we use copy constructor?

6 Answers   HP,


Is c++ double?

1 Answers  


Categories