Q:

Why should C++ programmers minimize the use of ‘new’?

0

Why should C++ programmers minimize the use of ‘new’?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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

total answers (1)

C++ Interview Questions For Experienced

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Can I free() pointers allocated with new in c++?... >>
<< Can I use realloc() on pointers allocated via new ...