Why doesn't C++ have a garbage collector? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Why doesn't C++ have a garbage collector?

10th Apr 2019, 1:26 AM
MrGernae
MrGernae - avatar
2 Answers
+ 12
Because it's a language made for responsible adults who know how to clean up after themselves. On the downside, having to consider memory management may use up some of your brain power which could have been used to focus on higher level concepts instead.
10th Apr 2019, 5:30 AM
Sonic
Sonic - avatar
0
Because C++ let the programer delete the allocated memory when it's unused. By this way, the good programer can make very fast programs and can economise memory in programs, unlike other programing languge
8th May 2019, 8:25 PM
Mustapha Oujaoura
Mustapha Oujaoura - avatar