Ocado Technology Interview Question

What is a difference between Python and C/C++, in terms of memory management?

Interview Answer

Anonymous

May 11, 2022

Python has its own built-in Garbage Collection (GC) and dynamic memory allocation process that enables efficient memory management. However, in C++, the developer must declare the data type before using it and declare the destructor for classes in the case of removing instances.

1