C++
Programming and Technical
Can I use realloc() on pointers allocated via new?
A: No!
Read Solution (Total 1)
-
- No. The 'realloc' is a legacy function from 'C'. All memory allocated by 'realloc' is deallocated using the 'free' function.
All memory allocated by the 'new' operator must be released using the 'delete' or 'delete[]' operator. - 6 years agoHelpfull: Yes(0) No(0)
C++ Other Question