Is it bad practice to dynamically add array new elements in C++ with realloc()?

  • Thread starter Thread starter -B-M-
  • Start date Start date
B

-B-M-

Guest
Ive been told that malloc(), calloc(), realloc() are C functions and that C++ has its own way of doing the equivalents.

except, I only know int* some_array = new int[num]. I dont know how to accomplish realloc().

Continue reading...
 
Back
Top