Is new[] and delete[] compatibile with realloc() ?

When dealing with char[] array, can I safely mix new and
delete operators with realloc(), or do I have to use
malloc() realloc() free() functions?
LVL 4
RobsonAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
thienpnguyenConnect With a Mentor Commented:
In C++, you can use new, delete, malloc, free, realloc together . However, the pointer that is related to "new" can not pass to realloc, free .. .
0
All Courses

From novice to tech pro — start learning today.