InterviewSolution
| 1. |
Why Garbage Collection? |
|
Answer» SINCE C++ does not provide automatic garbage collection like some other languages, smart POINTERS can be used for that purpose. The simplest garbage collection scheme is reference counting or reference linking, but it is QUITE possible to implement more sophisticated garbage collection schemes with smart pointers. Since C++ does not provide automatic garbage collection like some other languages, smart pointers can be used for that purpose. The simplest garbage collection scheme is reference counting or reference linking, but it is quite possible to implement more sophisticated garbage collection schemes with smart pointers. |
|