Same as above, ifyou're writing pure C then use malloc/free, if you're writing C++ then use new/delete.