How is memory managed in C++?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
What is cloning?
What is endianness?
Can constructor be private in c++?
What are static member functions?
write a programme to get a character and thier ASCII value
What is a static member?
what is an array
What is an orthogonal base class in c++?
What are function prototypes?
What is operators in c++?
What are the various situations where a copy constructor is invoked?
How many different levels of pointers are there?