How is memory managed in C++?

Answer Posted / nashiinformaticssolutions

Because C++ enables dynamic memory, the user must manually manage memory instead of relying on a garbage collector function to do it. The "new" and "delete" operators are used to dynamically allocate and deallocate memory, respectively.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between using macro and inline functions?

805


What is the use of namespace std in C++?

820


Does c++ have arraylist?

738


What does ios :: app do in c++?

775


What operator is used to access a struct through a pointer a) >> b) -> c) *

847


What is class syntax c++?

841


What is polymorphism & list its types in c++?

804


What is null and void pointer?

800


Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

744


What is c++ hiding?

869


When can I use a forward declaration?

809


How can we access protected and private members of a class?

839


what is c++

2062


Write a C++ Program to check whether a number is prime number or not?

856


What is the best free c++ compiler for windows?

819