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 |
What is input operator in c++?
What are the debugging methods you use when came across a problem?
What is the basic difference between C and C++?
Define whitespace in C++.
What is problem with overriding functions?
What are virtual functions in c++?
What is the use of the this pointer?
What do you mean by C++ access specifiers ?
How can you link a c++ program to c functions?
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.
when can we use copy constructor?
Is c++ double?