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 will happen if when say delete this ?
What is endianness?
Show the application of a dynamic array with the help of an example.
Should I learn c or c++ first?
Is c++ map a hash table?
what is the use of void main() in C++ language?
What is a dynamic binding in c++?
What is auto used for in c++?
What is c++ coding?
Is sorted c++?
please help to write the code of chess game in c++??????????
What is stream and its types in c++?