
- Forum
- Programming Talk
- C and C++
- Memory Reservation
Memory Reservation
This is a discussion on Memory Reservation within the C and C++ forums, part of the Programming Talk category; When we have array concept for reserving memory why is that there is another command called as new in C++.What ...
-
Memory Reservation
When we have array concept for reserving memory why is that there is another command called as new in C++.What is the special feature of this new operator?
-
Though I do not have much idea on the syntax and usage of the new operator I know that the main feature of the new operator is dynamic memory allocation. Anyone correct me if I am wrong.
-
03-02-2012, 05:08 AM #3
- Join Date
- Feb 2012
- Answers
- 66
One of these features of new operator is that they are intended to replace malloc() and free() in the C standard library.The C++ approach takes care of the low-level details necessary to determine how many bytes to allocate. With the C++ new operator, you simply describe the type of the desired storage.
Last edited by admin; 03-02-2012 at 09:12 AM.
-
Sponsored Ads

Reply With Quote





