How is memory managed in C++?

Answer Posted / nashiinformaticssolutions

C++ uses manual memory management with new and delete and also provides smart pointers like std::unique_ptr and std::shared_ptr.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the best ide for c++?

792


What is the use of main function in c++?

723


What is low level language in simple words?

787


Can we make any program in c++ without using any header file and what is the shortest program in c++.

817


Which programming language's unsatisfactory performance led to the discovery of c++?

1036


What does n mean in c++?

830


If dog is a friend of boy, is boy a friend of dog?

759


How do you invoke a base member function from a derived class in which you have not overridden that function?

827


What is the sequence of destruction of local objects?

718


Explain the difference between struct and class in terms of access modifier.

915


How can I learn c++ easily?

818


Differences between private, protected and public and give examples.

758


Is c++ platform dependent?

833


What is the use of default constructor?

796


What are associate containers?

802