Why should C++ programmers minimize the use of ‘new’?
Answer:
In dynamic memory allocation, bookkeeping is more complex and allocation is slower. Also, one biggest problem is that there is no implicit release point, you must release the allocated memory manually, using the delete or delete[].
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Answer:
In dynamic memory allocation, bookkeeping is more complex and allocation is slower. Also, one biggest problem is that there is no implicit release point, you must release the allocated memory manually, using the delete or delete[].
need an explanation for this answer? contact us directly to get an explanation for this answer