Which of the following programming language(s) provides garbage collection automatically
Except Lisp all language C, C++, Fortran have manual memory management.So Lisp provide automatic garbage collection.
Reference :Garbage Collection
Answer is A) LISP
Because C,C++ and FORTRAN does not provide that.
Answer : Lisp
Lisp is especially notable as both the first functional programming language and the first language to introduce garbage collection.
The reason behind my answer is I looked for lisp on google because i don't know anything about it ,but C++ is a object oriented programming Language like Java and C# and Java and C# has garbage collector so i thought C++ must be having garbage collector.
in case of C Lang we have to write a code for garbage collector .
In computer science, garbage collection (GC) is a form of automatic memory management. The garbage collector, or just collector, attempts to reclaim garbage, or memory occupied by objects that are no longer in use by the program.